{"name":"url-polyfill","version":"1.0.14","description":"Polyfill URL and URLSearchParams","main":"url-polyfill.js","scripts":{"start":"uglifyjs url-polyfill.js --stats -m -o url-polyfill.min.js","test":"node ./tests/test.js","serve":"http-server  ./"},"repository":{"type":"git","url":"git+https://github.com/lifaon74/url-polyfill.git"},"author":{"name":"valentin"},"license":"MIT","devDependencies":{"http-server":"^0.10.0","selenium-webdriver":"^4.0.0-alpha.1","uglify-js":"^3.0.14"},"dependencies":{},"gitHead":"598eba24a910f8a3457499cbcd7bfff633412be8","bugs":{"url":"https://github.com/lifaon74/url-polyfill/issues"},"homepage":"https://github.com/lifaon74/url-polyfill#readme","_id":"url-polyfill@1.0.14","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"lifaon74","email":"contact@valentin-richard.com"},"dist":{"integrity":"sha512-F/vvsmgr0nsywZFEYnVmZrRdu0+gSmzndLjUnllOJndmnLHPz8ovR9bwd5I58l2E6Am1tQkTohS39a5lhdAAjA==","shasum":"1baf108b0c09eacaa1915c067409f639a2a7e061","tarball":"http://registry-npm.ywwl.com/url-polyfill/download/url-polyfill-1.0.14.tgz","fileCount":16,"unpackedSize":63987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbDbdCRA9TVsSAnZWagAACdkP/08dtNa6yluCjaViX0OC\nGD97dYWftaKXfmKWfiLOyQ99tnOiVWV0IN9+sxFgSDofruiY/Kb7dukHxmzQ\nGkl1GksIe/vxexaKvNha8F/Rjuqtc4+UkGUCRE7MyWgPF0l2ZQWKYk+gT9A8\ncuAEzANrVMwSjUKtQKpAn8Zb9zpLgRMWyX4jgvvNGPjRXJaoxylVlKN08aAp\n5eFTiEpGaQmhZnDopKx5TcMVs7fD58DU+cnqU6t0iDvPWle/aay5B4StLgqT\nhROZ5sWMgW5wswD8FmouzLltKDMmNQ83V1uMH602OYH0Wa7v925f1Eq59obz\nJbKNrRKp3HPaRDP7o4LOt1jILvS8j7t7nOg2TR7CW4eFgO1LraRqje3umOPn\nEFufn6xU96De1et96ypIeBacKRQPK5kpv9f6GMpqebHd/azKMHXeIOMu8GUI\nUDs1k/WygfyRQMwGeGdyDupCQkxEOeqXjmj4qrw7RX//MVWyGUF3w18Z4Suw\n2tHj8ttbt5ZZrHbHDLwEkh/R/diAEofZo4KTspsCdrjgycwd9+UrqayAHf7w\nepiam2NEgBQ1dVm3+gKeloBa+ZuUg9zuZBPmuAwjpVTzYtmeAYcNMob95qoo\ng7zEQVi7jcRYbuN8xnWiOGz8IXRtKystLWhuUBc+G69iYnMn73Fidh3fpCY3\nYMTD\r\n=g3cB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG4VtHdTmun5QkIYvT9BvRPnvPP1g+4nt1upAFLhtSmwIhAIjVP/cSkEpKwftqYJAn2WoiujCWSoIchpN9P+jjIX+n"}],"size":14546,"noattachment":false,"key":"/url-polyfill/-/url-polyfill-1.0.14.tgz"},"maintainers":[{"name":"lifaon74","email":"contact@valentin-richard.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-polyfill_1.0.14_1533818588915_0.6585489427048192"},"_hasShrinkwrap":false,"readme":"### Polyfill URL and URLSearchParams to match last WHATWG specifications\r\n\r\nCompliant in most of the use cases but not at 100% (like unicode chars, punycodes, etc...)\r\n\r\nTested on IE 10+\r\n\r\n#### Install\r\n```\r\nnpm i url-polyfill --save\r\n```\r\n\r\n#### Currently supported\r\n\r\n##### window.URL\r\n\r\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/API/URL\r\n\r\nSupported : 'hash', 'host', 'hostname', 'href', 'port', 'protocol', 'search', 'toString', 'pathname', 'origin', 'searchParams'\r\n\r\nExample:\r\n\r\n```js\r\nconst url = new URL('https://www.example.com:8080/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0');\r\n```\r\n- hash: `\"page0\"`\r\n- host: `\"www.example.com:8080\"`\r\n- hostname: `\"www.example.com\"`\r\n- href: `\"https://www.example.com:8080/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0\"`\r\n- origin: `\"https://www.example.com:8080\"`\r\n- pathname: `\"/\"`\r\n- port: `\"8080\"`\r\n- protocol: `\"https:\"`\r\n- search: `\"?fr=yset_ie_syc_oracle&type=orcl_hpset\"`\r\n- searchParams: URLSearchParams (see next)\r\n\r\n##### window.URLSearchParams\r\n\r\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams\r\n\r\nSupported : 'append', 'delete', 'get', 'getAll', 'has', 'set', 'forEach', 'keys', 'values', 'entries', 'toString', 'Symbol.iterator'\r\n\r\nExample:\r\n\r\n```js\r\nconst url = new URL('https://www.example.com/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0');\r\nurl.searchParams.append('page', 0);\r\nconsole.log(url.toString()); // print: \"https://www.example.com/?fr=yset_ie_syc_oracle&type=orcl_hpset&page=0#page0\"\r\n```\r\n","publish_time":1533818589002,"_cnpm_publish_time":1533818589002,"dist-tags":{"latest":"1.1.14"}}