{"name":"url-polyfill","version":"1.1.13","author":{"name":"valentin"},"license":"MIT","_id":"url-polyfill@1.1.13","maintainers":[{"name":"lifaon74","email":"contact@valentin-richard.com"}],"homepage":"https://github.com/lifaon74/url-polyfill#readme","bugs":{"url":"https://github.com/lifaon74/url-polyfill/issues"},"dist":{"shasum":"e281edcded747a004b978c70941325b2243bfa97","tarball":"http://registry-npm.ywwl.com/url-polyfill/download/url-polyfill-1.1.13.tgz","fileCount":16,"integrity":"sha512-tXzkojrv2SujumYthZ/WjF7jaSfNhSXlYMpE5AYdL2I3D7DCeo+mch8KtW2rUuKjDg+3VXODXHVgipt8yGY/eQ==","signatures":[{"sig":"MEQCIF5vaTVyinx33cIPA3GZx1UV2DjvSQ0KI/hlQLLfA4e7AiAG0bXBFzD8+0atC/M6K57JjtwU+H4Sc46hw83bwUqeng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74831,"size":16692,"noattachment":false,"key":"/url-polyfill/-/url-polyfill-1.1.13.tgz"},"main":"url-polyfill.js","gitHead":"d376a9fa6a0aa67d000193a599954ecba6689925","scripts":{"test":"node ./tests/test.js","serve":"http-server  ./ -p9876","start":"uglifyjs url-polyfill.js -m -o url-polyfill.min.js"},"_npmUser":{"name":"lifaon74","email":"contact@valentin-richard.com"},"repository":{"url":"git+https://github.com/lifaon74/url-polyfill.git","type":"git"},"_npmVersion":"10.8.3","description":"Polyfill URL and URLSearchParams","directories":{},"_nodeVersion":"22.9.0","_hasShrinkwrap":false,"devDependencies":{"uglify-js":"^3.4.9","@types/node":"^10.12.18","http-server":"^0.11.1","selenium-webdriver":"^4.0.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/url-polyfill_1.1.13_1739014133936_0.935778129920025","host":"s3://npm-registry-packages-npm-production"},"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":1739014134108,"_cnpm_publish_time":1739014134108,"dist-tags":{"latest":"1.1.14"}}