As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| /** | |
| * @ NAME: Cross-browser TextStorage | |
| * @ DESC: text storage solution for your pages | |
| * @ COPY: sofish, http://sofish.de | |
| */ | |
| typeof window.localStorage == 'undefined' && ~function () { | |
| var localStorage = window.localStorage = {}, | |
| prefix = 'data-userdata', | |
| doc = document, |
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
| /** | |
| * modified from http://gist.github.com/527683 | |
| * only improve slightly to get small | |
| */ | |
| var ie = function(v, p, needle, undef) { | |
| needle = p.getElementsByTagName('br'); | |
| while( | |
| p.innerHTML = '<!--[if gt IE ' + (++v) + ']><br><![endif]-->', |