{"versions":{"2.1.1":{"name":"filenamify-url","version":"2.1.1","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["filename","file","name","string","path","convert","valid","url","uri"],"dependencies":{"filenamify":"^4.0.0","humanize-url":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.25.3"},"gitHead":"fc1b79adb245488e055ef9fc2db727f7760b71ed","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@2.1.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"db9e8c382a3fb9e80c50bc7b596821e80fc4cf81","size":1913,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-2.1.1.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_2.1.1_1577145731771_0.3305895132517085"},"_hasShrinkwrap":false,"publish_time":1577145731968,"_cnpm_publish_time":1577145731968,"contributors":[]},"2.1.0":{"name":"filenamify-url","version":"2.1.0","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["filename","file","name","string","path","convert","valid","url","uri"],"dependencies":{"filenamify":"^4.0.0","humanize-url":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"7ab4b3b19f1581b44c24bfe581400548dd8857d4","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6725c9b81da9aaf1d33f48261d3fd07ebba6b4a2","size":1899,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-2.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_2.1.0_1554534982667_0.0511446576525707"},"_hasShrinkwrap":false,"publish_time":1554534982821,"_cnpm_publish_time":1554534982821,"contributors":[]},"2.0.0":{"name":"filenamify-url","version":"2.0.0","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["filename","file","name","string","path","convert","valid","url","uri"],"dependencies":{"filenamify":"^3.0.0","humanize-url":"^2.0.0"},"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"a6ded929523a76921fee2cdf48b9b5fe16d973b8","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3034acdbba58060517d82e1e8a5de2a3dcb6df21","size":1746,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-2.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_2.0.0_1552274743874_0.06518227554744871"},"_hasShrinkwrap":false,"publish_time":1552274743993,"_cnpm_publish_time":1552274743993,"contributors":[]},"1.0.0":{"name":"filenamify-url","version":"1.0.0","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/filenamify-url"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["filename","file","name","string","str","path","convert","valid","dirname","url","uri","address"],"dependencies":{"filenamify":"^1.0.0","humanize-url":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"ba6de04767b7b51765e20bd4399423a9dd6940e6","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url","_id":"filenamify-url@1.0.0","_shasum":"b32bd81319ef5863b73078bed50f46a4f7975f50","_from":".","_npmVersion":"2.1.18","_nodeVersion":"1.0.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"b32bd81319ef5863b73078bed50f46a4f7975f50","size":1573,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-1.0.0.tgz"},"directories":{},"publish_time":1421214754783,"_cnpm_publish_time":1421214754783,"_hasShrinkwrap":false,"contributors":[]},"2.1.2":{"name":"filenamify-url","version":"2.1.2","description":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["filename","file","name","string","path","convert","valid","url"],"dependencies":{"filenamify":"^4.3.0","humanize-url":"^2.1.1"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.25.3"},"gitHead":"70c5abd24ab023588630418dad70cfa5c4ad6111","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@2.1.2","_nodeVersion":"14.16.1","_npmVersion":"7.10.0","dist":{"shasum":"844607d5e86919617340ba0fad4b458dae247100","size":1841,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-2.1.2.tgz"},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_2.1.2_1623354695425_0.6069472854425249"},"_hasShrinkwrap":false,"publish_time":1623354695587,"_cnpm_publish_time":1623354695587,"contributors":[]},"3.0.0":{"name":"filenamify-url","version":"3.0.0","description":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["filename","file","name","string","path","convert","valid","url"],"dependencies":{"filenamify":"^5.0.1","humanize-url":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"5fb023df398d6fb6363dec8bb077d7f8633967b3","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@3.0.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"shasum":"dc24426b6d8f4e153781c54a29a95490a67be8c6","size":1683,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-3.0.0.tgz"},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_3.0.0_1630017562919_0.45366570710497367"},"_hasShrinkwrap":false,"publish_time":1630017563044,"_cnpm_publish_time":1630017563044,"contributors":[]},"3.1.0":{"name":"filenamify-url","version":"3.1.0","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["filename","file","name","string","path","convert","valid","url"],"dependencies":{"filenamify":"^5.0.1","humanize-url":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"f1643eb59cc6f490700f87e8514828ab979112a4","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_id":"filenamify-url@3.1.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-Dvv4b4m1l5LiIo05049Q7Nk6v5yp6/E68WF3lm7tzIukATXuAFWIWiCi3N7EZ3jat6uvdNUR1WXqUc+oysFLAw==","shasum":"3c280fe5bcecec278936ed87dbee004240f20e1b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-3.1.0.tgz","fileCount":5,"unpackedSize":3915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpubieyDn4cXWmy7vipJA6Cu9OLtCxwsiCv1Fqru4higIgJ/yC2nEsGtZWYq7aGtGu/XvuFt7lc/J25TdGExt+tzA="}]},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filenamify-url_3.1.0_1701453820140_0.8388411788011612"},"_hasShrinkwrap":false,"contributors":[]},"4.0.0":{"name":"filenamify-url","version":"4.0.0","description":"Convert a URL to a valid filename","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/filenamify-url.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["filename","file","name","string","path","convert","valid","url"],"dependencies":{"filenamify":"^7.0.0","humanize-url":"^3.0.0"},"devDependencies":{"ava":"^6.4.1","xo":"^1.2.2"},"_id":"filenamify-url@4.0.0","gitHead":"17162beecd0d5bcc58c450113b0f9949a7e0c5ec","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/filenamify-url/issues"},"homepage":"https://github.com/sindresorhus/filenamify-url#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-dhK3TuWC6dbKMgL3Li3qlsd6wHZ2bXJXt2VJw+D8mPIXCTLtet+sRmK6/t1cseuWjYRdMa4gNb7c2H6D8J0Jig==","shasum":"07cf72ae867718a0f8247c792eec7ee04751138d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/filenamify-url/-/filenamify-url-4.0.0.tgz","fileCount":5,"unpackedSize":3883,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCbjrrvUFlnSeRYcTMvugwhN+RwufWKOXrDHAWtLYM25gIhAOKxOz4X7+pRutFMkGvzN58Vyp0dwyfJ6Es1GcbszPjg"}],"size":1816},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/filenamify-url_4.0.0_1757895051469_0.2550641668812452"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-15T00:10:51.656Z","publish_time":1757895051656,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"4.0.0"},"name":"filenamify-url","time":{"modified":"2025-09-15T00:11:11.736Z","created":"2022-01-26T14:38:03.201Z","2.1.1":"2019-12-24T00:02:11.968Z","2.1.0":"2019-04-06T07:16:22.821Z","2.0.0":"2019-03-11T03:25:43.993Z","1.0.0":"2015-01-14T05:52:34.783Z","2.1.2":"2021-06-10T19:51:35.587Z","3.0.0":"2021-08-26T22:39:23.044Z","3.1.0":"2023-12-01T18:03:40.388Z","4.0.0":"2025-09-15T00:10:51.656Z"},"readme":"# filenamify-url\n\n> Convert a URL to a valid filename\n\n## Install\n\n```sh\nnpm install filenamify-url\n```\n\n## Usage\n\n```js\nimport filenamifyUrl from 'filenamify-url';\n\nfilenamifyUrl('http://sindresorhus.com/foo?bar=baz');\n//=> 'sindresorhus.com!foo!bar=baz'\n\nfilenamifyUrl('http://sindresorhus.com/foo', {replacement: '🐴'});\n//=> 'sindresorhus.com🐴foo'\n\nfilenamifyUrl(new URL('http://sindresorhus.com'));\n//=> 'sindresorhus.com'\n```\n\n## API\n\n### filenamifyUrl(url, options?)\n\nAccepts a URL and returns a valid filename.\n\n#### url\n\nType: `string | URL`\n\nA URL to convert to a valid filename.\n\n#### options\n\nType: `object`\n\nSee the [`filenamify` options](https://github.com/sindresorhus/filenamify#options).\n\n## Related\n\n- [filenamify-cli](https://github.com/sindresorhus/filenamify-cli) - CLI for this package\n- [filenamify](https://github.com/sindresorhus/filenamify) - Convert a string to a valid safe filename\n- [slugify](https://github.com/sindresorhus/slugify) - Slugify a string","users":{}}