{"name":"url-polyfill","version":"1.0.8","description":"Polyfill URL and URLSearchParams","main":"url-polyfill.js","scripts":{"start":"uglifyjs url-polyfill.js --stats -m -o url-polyfill.min.js","test":"mocha ./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","mocha":"^3.4.2","selenium-webdriver":"^3.4.0","uglify-js":"^3.0.14"},"gitHead":"b7dee687c6143d0a39b3f73e9c3fd9ceed070cab","bugs":{"url":"https://github.com/lifaon74/url-polyfill/issues"},"homepage":"https://github.com/lifaon74/url-polyfill#readme","_id":"url-polyfill@1.0.8","_shasum":"fefde196a8ea6c0cb5fa3ff5604842acf1c3f2c6","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"lifaon74","email":"contact@valentin-richard.com"},"maintainers":[{"name":"lifaon74","email":"contact@valentin-richard.com"}],"dist":{"shasum":"fefde196a8ea6c0cb5fa3ff5604842acf1c3f2c6","tarball":"http://registry-npm.ywwl.com/url-polyfill/download/url-polyfill-1.0.8.tgz","integrity":"sha512-Z2P8/vZ/QQhWJNfHhkXWhJeDO8ftjhhJnA/h3iSAn5yg7e5f3MraqkBcekIEk4SnWGE2YlWHkC3OUDC2QIgmDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1vL7IZycu+FSEP2tZsPzAfi84/6WMI4c+2iYtq5tZfAiEA/n/0fHZmbWt0X/UR+ZxEzLsWSYa6bUHWOmcMG7W3in0="}],"size":16462,"noattachment":false,"key":"/url-polyfill/-/url-polyfill-1.0.8.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-polyfill-1.0.8.tgz_1506412027428_0.4733558006118983"},"directories":{},"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":1506412028364,"_cnpm_publish_time":1506412028364,"dist-tags":{"latest":"1.1.14"}}