{"_id":"url-normalize","_rev":"20-3f660fc8c7ce81d312ac6d70bb83f9c8","name":"url-normalize","dist-tags":{"latest":"2.4.0"},"versions":{"1.1.0":{"name":"url-normalize","version":"1.1.0","keywords":["url","normalize","normalization","uri","url-normalization","url-normalize","querystrings","domain","extract","canonical"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.1.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"dist":{"shasum":"d4cefbfdf2dce35687b6a1d264264469bee08c4b","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.1.0.tgz","fileCount":12,"integrity":"sha512-LL9Ca2W5anE5m3h/q7lM6K9Vl0sYpAYUTa+uu9WQN9zExPRT8bdE2PKER/SXzw6Zh3IicjPmkkxSBQBaOhLIUQ==","signatures":[{"sig":"MEUCIEvoHcRfT4F6H4TUO9JKoNTA5cW3VyHbDwRpE6a8RkyTAiEAqFsspkUiw7RAV7hxlmcT/Q44m2Y1NUEHfEE7EptQNek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25126},"type":"module","exports":{"types":"./dist/main.d.ts","import":"./dist/main.mjs","require":"./dist/main.cjs"},"gitHead":"1595dc80ecc0d5efab8abf9e816659ca8c55a7e9","scripts":{"test":"uvu -r tsm tests/","build":"rm -rf dist && microbundle -f cjs,modern","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check \"{src,tests}/**/*.{js,jsx,ts,tsx}\""},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"_npmVersion":"9.5.1","description":"<div align=\"center\">   <a href=\"https://npmjs.org/package/url-normalize\">     <img src=\"https://badgen.net/npm/v/url-normalize\" alt=\"version\" />   </a>   <a href=\"https://github.com/vladkens/url-normalize/actions\">     <img src=\"https://github.com/vladken","directories":{},"_nodeVersion":"18.16.0","publishConfig":{"main":"dist/main.cjs","source":"src/main.ts","exports":"dist/main.mjs"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","prettier":"^2.8.8","microbundle":"^0.15.1","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.1.0_1684017929684_0.33983175142198707","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"url-normalize","version":"1.1.1","keywords":["url","normalize","normalization","uri","url-normalization","url-normalize","querystrings","domain","extract","canonical"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.1.1","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"b8b24551119616075daf93152b61f7a33d86e234","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.1.1.tgz","fileCount":12,"integrity":"sha512-UZYmbZxg3SnLNqWZZGVOvVFMZEDJcujg0ZqKn/s2eRWyuRprS9EHq3U2KbnSHapo6TUNxMhLjGzRMX+7yJdFhg==","signatures":[{"sig":"MEUCIQD9CUOgnAJbmXDpUpyIiWYqea68byjllbdDClOZM/0PSgIgbs850qV7y3y9rElvRB0IipK4B59QdDrx6mQxxXMbRo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25304},"type":"module","exports":{"types":"./dist/main.d.ts","import":"./dist/main.mjs","require":"./dist/main.cjs"},"gitHead":"be1a22f37ee9420a2e02f7baca9c83e9fbd64eb4","scripts":{"test":"uvu -r tsm tests/","build":"rm -rf dist && microbundle -f cjs,modern","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check \"{src,tests}/**/*.{js,jsx,ts,tsx}\""},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form by removing unnecessary characters, decoding encoded characters, removing default index pages, removing trailing slashes, and more.","directories":{},"_nodeVersion":"18.16.0","publishConfig":{"main":"dist/main.cjs","source":"src/main.ts","exports":"dist/main.mjs"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","prettier":"^2.8.8","microbundle":"^0.15.1","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.1.1_1684018978510_0.5933466153977307","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"url-normalize","version":"1.2.0","keywords":["url","normalize","normalization","uri","url-normalization","url-normalize","querystrings","domain","extract","canonical"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.2.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"f213ec3ac316a130608f19a407a5cff2b77b7ffb","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.2.0.tgz","fileCount":12,"integrity":"sha512-5H78uEjnZBWIvLKK+nu3VKN32yBay35jTfAvs+Yt6/GPVMkLYXqXxr3cTc3X9KxyeEZKH7VmZ9yNXnKItYTToQ==","signatures":[{"sig":"MEUCIQD1hzwM0KfgLQRtG1nWElSgG0BebE8IaSUaF4XGRYnAeAIgEsvg+JTf/SoTNM5XGweabHQmMKMv2DZplV5Y5QT7Rb0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27568},"type":"module","types":"./dist/main.d.ts","exports":{"types":"./dist/main.d.ts","import":"./dist/main.mjs","require":"./dist/main.cjs"},"gitHead":"299991d537841889f05dbed4729245cbfabb1aee","scripts":{"test":"uvu -r tsm tests/","build":"rm -rf dist && microbundle -f cjs,modern","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check \"{src,tests}/**/*.{js,jsx,ts,tsx}\""},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form by removing unnecessary characters, decoding encoded characters, removing default index pages, removing trailing slashes, and more.","directories":{},"_nodeVersion":"18.16.0","publishConfig":{"main":"dist/main.cjs","source":"src/main.ts","exports":"dist/main.mjs"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","prettier":"^2.8.8","microbundle":"^0.15.1","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.2.0_1684023035646_0.6478773488358298","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"url-normalize","version":"1.2.1","keywords":["url","normalize","normalization","uri","url-normalization","url-normalize","querystrings","domain","extract","canonical"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.2.1","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"3ddec3158fbb9e9622d475b760a64363260bb724","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.2.1.tgz","fileCount":7,"integrity":"sha512-5eUjZRHSf+cJP9ZDZwUFx55rEqvU+v9yJ0LNhEqdorZ0HwTVJ25rA03I/iU+lHNoREPuQxPEiZ7rjmCssgVCIQ==","signatures":[{"sig":"MEUCIDKhPdKANpHbWAyPyYR0fV/6l/mHcQonL4NXCMwkFML/AiEAqQYUfifv9LvXN9kQ2S2f5agUJ6GH5xDgNLdqF2Vlk4g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13699},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"cc1a6d92f0feb270d9ca8dae1a28bc744148064c","scripts":{"test":"uvu -r tsm tests/","build":"rm -rf dist && pkgroll --minify","format":"prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form by removing unnecessary characters, decoding encoded characters, removing default index pages, removing trailing slashes, and more.","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","pkgroll":"^1.10.0","prettier":"^2.8.8","typescript":"^5.0.4","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.2.1_1684025939418_0.11030169481917573","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"url-normalize","version":"1.3.0","keywords":["canonical","domain","extract","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url-normalization","url-normalize","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.3.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"7c763dd44aa7c4143016d399cb66366a2ea329f5","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.3.0.tgz","fileCount":7,"integrity":"sha512-CqH1rBD+bAhl+Nad2OcgU8tgWewyqo1OvG2eb/WI4Oq6RFqD/0jYf946ukkMCc+5OlAzZpQwSnreTrNP/e8Pjg==","signatures":[{"sig":"MEQCIGXT4fusV5f8dUqt4d8K4ZiP7QYLRv5usGZ4CxNnNKRdAiAU9MS5mBQip71+aWCr8fgCs0yoDJ9LZ2xUaPn1F5ov+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15129},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"947827b4b741f6d33dc59d0d457613d7fbae5e8f","scripts":{"test":"uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form by removing unnecessary characters, decoding encoded characters, removing default index pages, removing trailing slashes, and more.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"punycode":"^2.3.0","@types/punycode":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","pkgroll":"^1.10.0","prettier":"^2.8.8","typescript":"^5.0.4","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.3.0_1684103335413_0.05526776654242993","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"url-normalize","version":"1.4.0","keywords":["canonical","domain","extract","humanization","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@1.4.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"7b6066f867f976e0f627869e99c3a2ed064eaaca","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-1.4.0.tgz","fileCount":7,"integrity":"sha512-hBiVl6SZY3HMz7yhBDrdyu7fFleHzvjhpt6f2wk5ll5diBWO51VkNxiWdLrkaW3NYWffy0d38VKo7nHKGfP1jw==","signatures":[{"sig":"MEUCIQD8Y1aVB3rGo+77ont9X4q8C0+iatIRvIxzebM6ywuvKAIgEoKC1q/rHX/mcNznsy18rXEloSsoB91KVTpTcgYMPOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15754},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"c69b3183e4c571c2f9a5191c94b57e0e9fbebcee","scripts":{"test":"uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"punycode":"^2.3.0","@types/punycode":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","pkgroll":"^1.10.0","prettier":"^2.8.8","typescript":"^5.0.4","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_1.4.0_1684106528715_0.0505840854772972","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"url-normalize","version":"2.0.0","keywords":["canonical","domain","extract","humanization","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@2.0.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"836e1e582130660dac716da5e71d521726f09ac8","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.0.0.tgz","fileCount":7,"integrity":"sha512-UzdgW9QmjcaLMwVPTsHl6Ehc7mtkoBff5cdNXaTO/0R3PilvbMPi8A+bpRJpAhj0T4VbhfgjmTYxVBhWji3V0w==","signatures":[{"sig":"MEUCIQC2XXUjA06pdL7kVkPe/H+AncmzkaUlX4/gTwLTugnnKAIgZZALsi4n9Hg35JGcl2ouWCtq138FG5XLQ3xhAPPAcq8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15611},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"ce1c51b8bc70d504680577c830f603b709ad52f9","scripts":{"test":"tsc --noEmit && uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"9.5.1","description":"Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"punycode":"^2.3.0","@types/punycode":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.13.0","tsm":"^2.3.0","uvu":"^0.5.6","pkgroll":"^1.10.0","prettier":"^2.8.8","typescript":"^5.0.4","prettier-plugin-organize-imports":"^3.2.2"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_2.0.0_1684320741516_0.435986532909417","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"url-normalize","version":"2.1.0","keywords":["canonical","domain","extract","humanization","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@2.1.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"d17e947b4598663bde336081c56d74f0102f24bc","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.1.0.tgz","fileCount":7,"integrity":"sha512-TIc2113H7yzrkYeNifzGAdwd9h1t7HreCVBAoeX6I7TcSPr6NyInHviVp8+b2GjsCiSaSdiW1Ny/lA7Q/pMYWA==","signatures":[{"sig":"MEUCIQDrukNGw+idjU4NLycSdFD/Lb7TNzpOuJLi44sBYMP6QgIgR957I+SNJkCT9l/Ee6bJxEmtNJZtIsiR7AIdEH2osP8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16010},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"d56758df96125061a584057ef764fbf6662956de","scripts":{"ci":"yarn format-check && yarn test && yarn build","test":"tsc --noEmit && uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'","format-check":"prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"10.8.3","description":"Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"punycode":"2.3.1","@types/punycode":"2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"10.1.2","tsm":"2.3.0","uvu":"0.5.6","pkgroll":"2.5.0","prettier":"3.3.3","typescript":"5.6.3","prettier-plugin-organize-imports":"4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_2.1.0_1728777054076_0.6956272576762736","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"url-normalize","version":"2.1.1","keywords":["canonical","domain","extract","humanization","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@2.1.1","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"12153bfeb818c31387f261f4da47e34e256ffb29","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.1.1.tgz","fileCount":7,"integrity":"sha512-x4XIwu7ef2QjC0V54ebOcVhQ+gK1Rs05Vkq6brlddOzDExctP4iooHaA5oYoOiisDIZyHbmvhIBku/D8dhglvA==","signatures":[{"sig":"MEYCIQDBY+ewJXPedko26dGVgu2waicxbBBP1pUteswYEbO41wIhAKpcknP1I9thWhT3jrzSDEAGoFc4okL5Sj0AAUFm0wRp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/url-normalize@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15932},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"8227843d45f4fa905e313c3bd0925e1c6eeb64a4","scripts":{"ci":"yarn lint && yarn test-cov && yarn build","lint":"tsc --noEmit && prettier --check .","test":"uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write .","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"10.9.0","description":"Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.","directories":{},"_nodeVersion":"22.10.0","dependencies":{"punycode":"2.3.1","@types/punycode":"2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"10.1.2","tsm":"2.3.0","uvu":"0.5.6","pkgroll":"2.5.0","prettier":"3.3.3","typescript":"5.6.3","prettier-plugin-organize-imports":"4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_2.1.1_1731173111298_0.24327939659246178","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"url-normalize","version":"2.2.0","keywords":["canonical","domain","extract","humanization","humanize","normalization","normalize","punycode","querystrings","unicode","uri","url"],"author":{"name":"Vlad Pronsky","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@2.2.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"9245ebf98d66a755d5e771d7917380e671ac3c6f","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.2.0.tgz","fileCount":7,"integrity":"sha512-XsR2ehA0KB6dzGf1YKgNAGJtCiRTIewkWkjUvP2bwIaky6nXBRIg9htu1LuvkkbI0SdJCfkU9YzSOjWVTczStg==","signatures":[{"sig":"MEUCIQCL5MSJK017MQivAfnGGuPwazrWEQlaEqt3Yfu2jcvglAIgU7W4qkjMSVzXAeBiug3/tTekFDb2rS5NvcK8iusWUc8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/url-normalize@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15949},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"cc556a2e577775bffb0aaa402cecc7b9f324b9df","scripts":{"ci":"yarn lint && yarn test-cov && yarn build","lint":"tsc --noEmit && prettier --check .","test":"uvu -r tsm tests/","bench":"node --loader tsm --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write .","test-cov":"c8 --include=src yarn test","test-watch":"watchexec -e ts 'clear && yarn test'"},"_npmUser":{"name":"vladkens","email":"v.pronsky@gmail.com"},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"10.9.3","description":"Normalize URLs to a standardized form. HTTPS by default, flexible configuration, custom protocols, domain extraction, humazing URL, and punycode support. Both CJS & ESM modules available.","directories":{},"_nodeVersion":"22.18.0","dependencies":{"punycode":"2.3.1","@types/punycode":"2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"c8":"10.1.3","tsm":"2.3.0","uvu":"0.5.6","pkgroll":"2.15.3","prettier":"3.6.2","typescript":"5.9.2","prettier-plugin-organize-imports":"4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_2.2.0_1756662596567_0.910795848948136","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"url-normalize","version":"2.3.0","keywords":["url","uri","normalize","normalization","canonical","validate","validation","validator","sanitize","clean","parse","parser","domain","extract","humanize","punycode","unicode","idn","idna","querystring","query","link","typescript"],"author":{"name":"vladkens","email":"v.pronsky@gmail.com"},"license":"MIT","_id":"url-normalize@2.3.0","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"homepage":"https://github.com/vladkens/url-normalize#readme","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"603881e2f0db13ba1cba842099529d71524b3806","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.3.0.tgz","fileCount":7,"integrity":"sha512-deTJk3v4AKqfodLf/L+P6pojgYdsxneH1+Y2uCmSNWRKvS4023MzcRemuPEcnUCA6RDUJFkMFdDxOtPo8tylHA==","signatures":[{"sig":"MEUCIFai6ZYdohFFytlQDyXHx0x/xfJDzg4VlxZtGz4gs2ZzAiEA2JrhFsn3uj+CEwuFPYKCSDwEC5SRq0ISQ06DvDKWtxA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/url-normalize@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16924},"type":"module","types":"./dist/main.d.cts","exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"gitHead":"6abfe3122082711ff0404eae848b6c33d9cce131","scripts":{"ci":"npm run lint && npm run test-cov && npm run build","lint":"tsc --noEmit && prettier --check .","test":"tsx --test --test-reporter=dot src/main.test.ts","bench":"node --import tsx --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write --log-level warn .","test-cov":"tsx --experimental-test-coverage --test src/main.test.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f7bb5d56-4c1d-40fa-a5bc-7d1c608fa83a"}},"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"11.11.1","description":"Normalize, validate, and canonicalize URLs — returns HTTPS canonical form or null for invalid input. Domain extraction, URL humanization, Punycode/Unicode/IDN support, 12 config options. TypeScript, CJS + ESM.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"punycode":"2.3.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","pkgroll":"2.27.0","prettier":"3.8.1","typescript":"5.9.3","@types/node":"25.5.0","@types/punycode":"2.1.4","prettier-plugin-organize-imports":"4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/url-normalize_2.3.0_1773439530115_0.10657077758802558","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"_id":"url-normalize@2.4.0","bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"dist":{"shasum":"6a2c3ea8835ec790d482c7821d723619bcc7d209","tarball":"https://registry.npmjs.org/url-normalize/-/url-normalize-2.4.0.tgz","fileCount":7,"integrity":"sha512-ZFSp83FVE+1GHzg0R/09el0rQDT/5MLrwB8sreE/p/HCo5ORqpuEGLh+mtFwXc04O4dzW0L8xZGYSNhfhimqNw==","signatures":[{"sig":"MEUCIFTC6fzH6JuHfwyDB2tjkMg0Q6FFkJ2QZIYEblNoRAkMAiEA2aCFkRXmhONigL2Frlm3qFJrmJDj+IifEF1HDD8E3xo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCab2X3YN07w+Y/3PaIPBiZECYbYZg4QtNRuAonwhKHeAIgFv6ylgRfVYLO0m57N1UXWgMTZ4DD3W53scju0SziuNM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/url-normalize@2.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21656},"name":"url-normalize","type":"module","_from":"file:/home/runner/work/_temp/npm-publish/url-normalize-2.4.0.tgz","types":"./dist/main.d.cts","author":{"name":"vladkens","email":"v.pronsky@gmail.com"},"exports":{"import":{"types":"./dist/main.d.mts","default":"./dist/main.mjs"},"require":{"types":"./dist/main.d.cts","default":"./dist/main.cjs"}},"license":"MIT","scripts":{"ci":"npm run lint && npm run test-cov && npm run build","lint":"tsc --noEmit && prettier --check .","test":"tsx --test --test-reporter=dot src/main.test.ts","bench":"node --import tsx --no-warnings benchmark.ts","build":"rm -rf dist && pkgroll --minify && ls -lah dist","format":"prettier --write --log-level warn .","test-cov":"tsx --experimental-test-coverage --test src/main.test.ts"},"version":"2.4.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"74f82ad5-cfb8-4664-8f09-dfb8b8f53874"}},"homepage":"https://github.com/vladkens/url-normalize#readme","keywords":["url","uri","normalize","normalization","canonical","validate","validation","validator","sanitize","clean","parse","parser","domain","extract","humanize","punycode","unicode","idn","idna","querystring","query","link","typescript"],"_resolved":"/home/runner/work/_temp/npm-publish/url-normalize-2.4.0.tgz","_integrity":"sha512-ZFSp83FVE+1GHzg0R/09el0rQDT/5MLrwB8sreE/p/HCo5ORqpuEGLh+mtFwXc04O4dzW0L8xZGYSNhfhimqNw==","repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"_npmVersion":"11.19.1","description":"Normalize messy URLs into one canonical https:// form, or null for invalid input. Dedupe links, extract domains, humanize for display, Punycode/Unicode domains. Zero dependencies, under 2 KB, TypeScript, CJS + ESM.","directories":{},"maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.15","pkgroll":"2.29.0","prettier":"3.9.10","punycode":"2.3.1","typescript":"5.9.3","@types/node":"26.6.6","prettier-plugin-organize-imports":"4.3.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/url-normalize_2.4.0_1794781520903_0.938736766375572"}}},"time":{"created":"2023-05-13T22:45:29.683Z","modified":"2026-11-15T22:25:21.324Z","1.0.0":"2018-06-22T13:35:40.537Z","1.0.1":"2018-06-22T13:40:11.002Z","1.0.2":"2018-07-02T12:58:48.544Z","1.0.3":"2018-07-08T03:47:34.164Z","1.1.0":"2023-05-13T22:45:29.880Z","1.1.1":"2023-05-13T23:02:58.680Z","1.2.0":"2023-05-14T00:10:35.802Z","1.2.1":"2023-05-14T00:58:59.545Z","1.3.0":"2023-05-14T22:28:55.575Z","1.4.0":"2023-05-14T23:22:08.873Z","2.0.0":"2023-05-17T10:52:21.686Z","2.1.0":"2024-10-12T23:50:54.267Z","2.1.1":"2024-11-09T17:25:11.545Z","2.2.0":"2025-08-31T17:49:56.745Z","2.3.0":"2026-03-13T22:05:30.277Z","2.4.0":"2026-11-15T22:25:21.004Z"},"bugs":{"url":"https://github.com/vladkens/url-normalize/issues"},"author":{"name":"vladkens","email":"v.pronsky@gmail.com"},"license":"MIT","homepage":"https://github.com/vladkens/url-normalize#readme","keywords":["url","uri","normalize","normalization","canonical","validate","validation","validator","sanitize","clean","parse","parser","domain","extract","humanize","punycode","unicode","idn","idna","querystring","query","link","typescript"],"repository":{"url":"git+https://github.com/vladkens/url-normalize.git","type":"git"},"description":"Normalize messy URLs into one canonical https:// form, or null for invalid input. Dedupe links, extract domains, humanize for display, Punycode/Unicode domains. Zero dependencies, under 2 KB, TypeScript, CJS + ESM.","maintainers":[{"name":"vladkens","email":"v.pronsky@gmail.com"}],"readme":"# url-normalize\n\n<div align=\"center\">\n\n[<img src=\"https://badges.ws/npm/v/url-normalize\" alt=\"version\" />](https://npmjs.org/package/url-normalize)\n[<img src=\"https://badges.ws/packagephobia/install/url-normalize\" alt=\"size\" />](https://packagephobia.com/result?p=url-normalize)\n[<img src=\"https://badges.ws/npm/dm/url-normalize\" alt=\"downloads\" />](https://npmjs.org/package/url-normalize)\n[<img src=\"https://badges.ws/github/license/vladkens/url-normalize\" alt=\"license\" />](https://github.com/vladkens/url-normalize/blob/main/LICENSE)\n\n</div>\n\n**One URL, one spelling.** Turns messy, user-typed URLs into a single canonical `https://` form, or `null` when the input is not a web URL. Zero dependencies, under 2 KB.\n\n```typescript\nimport { urlNormalize } from \"url-normalize\"\n\nurlNormalize(\"WWW.Example.com:443/blog/../about?utm_source=x&b=2&a=1#\")\n// → \"https://example.com/about?a=1&b=2&utm_source=x\"\n```\n\n## Why\n\nThe same page reaches you spelled a dozen ways. Store or compare them as they are and you get duplicates; normalize them first and they collapse into one key.\n\n| Input                                                     | Output                          |\n| --------------------------------------------------------- | ------------------------------- |\n| `example.com`                                             | `https://example.com`           |\n| `//www.example.com/`                                      | `https://example.com`           |\n| `HTTPS://Example.com:443/a/../b`                          | `https://example.com/b`         |\n| `example.com/?b=2&a=1`                                    | `https://example.com/?a=1&b=2`  |\n| `пример.рф`                                               | `https://xn--e1afmkfd.xn--p1ai` |\n| `example.com/#:~:text=hello`                              | `https://example.com`           |\n| `example`, `mailto:hi@example.com`, `javascript:alert(1)` | `null`                          |\n\nGood for deduplicating links in a database, cache and crawler keys, comparing user-submitted URLs, and showing clean links in a UI.\n\n- **Never throws.** `null` for anything that is not a web URL; the `*OrFail` variants throw if you prefer.\n- **Keeps the meaning.** Decodes escapes for readability, but keeps the ones that would change the URL (`%26`, `%2B`, `%3D`, `%23`, `%25`, …). Normalizing twice gives the same result.\n- **Safe on hostile input.** Rejects `javascript:` and `vbscript:` links, runs in linear time on long or crafted strings.\n- **Tiny.** Under 2 KB brotli, zero dependencies, CJS + ESM, TypeScript types.\n- **International.** Punycode ↔ Unicode domains, both ways.\n- **Batteries included.** `extractDomain`, `humanizeUrl` and preset normalizers.\n\n## Install\n\n```sh\nnpm i url-normalize\n```\n\n## Options\n\nPass an options object as the second argument. The defaults fit most cases.\n\n| Option            | Default   | Effect                                                                                                  |\n| ----------------- | --------- | ------------------------------------------------------------------------------------------------------- |\n| `defaultProtocol` | `\"https\"` | Protocol added when the input has none; an existing one is kept                                         |\n| `protocol`        | `true`    | `false` strips the protocol                                                                             |\n| `www`             | `false`   | `true` keeps `www.`                                                                                     |\n| `auth`            | `false`   | `true` keeps `user:pass@`                                                                               |\n| `port`            | `true`    | `false` strips the port; 80 and 443 are always removed                                                  |\n| `index`           | `true`    | `false` strips `index.html`, `index.php` and other `index.*` files                                      |\n| `search`          | `true`    | `false` strips the query                                                                                |\n| `sortSearch`      | `true`    | Sorts query params by key; repeated keys keep their order                                               |\n| `filterSearch`    | –         | `(key, value) => boolean`, keeps only the matching query params                                         |\n| `fragment`        | `true`    | `false` strips the `#hash`                                                                              |\n| `textFragment`    | `false`   | `true` keeps [text fragments](https://wicg.github.io/scroll-to-text-fragment/) (`#:~:text=…`)           |\n| `customProtocol`  | `false`   | `true` allows `tg://`, `ftps://` and other protocols; `javascript:` and `vbscript:` are always rejected |\n| `forceProtocol`   | –         | Replaces the protocol, e.g. `\"sftp\"`                                                                    |\n| `unicode`         | `false`   | `true` returns Unicode domains instead of Punycode                                                      |\n\n```typescript\nurlNormalize(\"example.com\", { defaultProtocol: \"http\" }) // → \"http://example.com\"\nurlNormalize(\"https://example.com/foo?bar=baz\", { protocol: false }) // → \"example.com/foo?bar=baz\"\nurlNormalize(\"www.example.com\", { www: true }) // → \"https://www.example.com\"\nurlNormalize(\"https://user:pass@example.com\", { auth: true }) // → \"https://user:pass@example.com\"\nurlNormalize(\"https://example.com:8080\") // → \"https://example.com:8080\"\nurlNormalize(\"https://example.com:8080\", { port: false }) // → \"https://example.com\"\nurlNormalize(\"example.com/foo/index.html\", { index: false }) // → \"https://example.com/foo\"\nurlNormalize(\"example.com/?a=1&b=2\", { search: false }) // → \"https://example.com\"\nurlNormalize(\"example.com/?b=2&a=1\", { sortSearch: false }) // → \"https://example.com/?b=2&a=1\"\nurlNormalize(\"example.com/?utm_source=x&id=1\", { filterSearch: (k) => !k.startsWith(\"utm_\") }) // → \"https://example.com/?id=1\"\nurlNormalize(\"example.com/#foo\", { fragment: false }) // → \"https://example.com\"\nurlNormalize(\"example.com/#:~:text=hello\", { textFragment: true }) // → \"https://example.com/#:~:text=hello\"\nurlNormalize(\"tg://example.com\", { customProtocol: true }) // → \"tg://example.com\"\nurlNormalize(\"https://example.com\", { forceProtocol: \"sftp\" }) // → \"sftp://example.com\"\nurlNormalize(\"https://xn--9q8huc.ws\", { unicode: true }) // → \"https://👻💥.ws\"\n```\n\n## More functions\n\n```typescript\nimport { createUrlNormalize, extractDomain, humanizeUrl, urlNormalizeOrFail } from \"url-normalize\"\n\n// a normalizer with preset options\nconst normalize = createUrlNormalize({ defaultProtocol: \"http\", fragment: false })\nnormalize(\"example.com/foo#tag\") // → \"http://example.com/foo\"\n\n// the bare domain\nextractDomain(\"https://www.example.com:8080/?a=1#tag\") // → \"example.com\"\n\n// for display, without the protocol\nhumanizeUrl(\"https://example.com/foo/bar\") // → \"example.com/foo/bar\"\n\n// throws instead of returning null; extractDomainOrFail and humanizeUrlOrFail too\nurlNormalizeOrFail(\"example\") // throws\n```\n\n## Compared to normalize-url\n\n[normalize-url](https://github.com/sindresorhus/normalize-url) is the popular choice and has more options. url-normalize is stricter about what counts as a URL and ships the helpers above:\n\n|                       | url-normalize | normalize-url           |\n| --------------------- | ------------- | ----------------------- |\n| `example`             | `null`        | `\"http://example\"`      |\n| `javascript:alert(1)` | `null`        | `\"javascript:alert(1)\"` |\n| `example.com`         | `\"https://…\"` | `\"http://…\"`            |\n| Domain and display    | built in      | –                       |\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"readme.md"}