{"_id":"modify-filename","_rev":"10-b9d8bb068274a3fbc85aae35cd258660","name":"modify-filename","description":"Modify the filename in a path","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"modify-filename","version":"1.0.0","description":"Modify the filename in a path","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/modify-filename"},"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":["modify","change","replace","filename","file","name","path"],"devDependencies":{"ava":"0.0.4"},"gitHead":"5005b2abce3c9482287863bb4fb6b832de877ba3","bugs":{"url":"https://github.com/sindresorhus/modify-filename/issues"},"homepage":"https://github.com/sindresorhus/modify-filename","_id":"modify-filename@1.0.0","_shasum":"a4a8a84c1a8dbea3cae98f17f596b4eba2c9017e","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a4a8a84c1a8dbea3cae98f17f596b4eba2c9017e","tarball":"https://registry.npmjs.org/modify-filename/-/modify-filename-1.0.0.tgz","integrity":"sha512-00zFdhkYXxY+MdT1WCwCeQMvwtI2FL3Y3Rd55F1OJ7TIJPcGt8tqtksLt2o557HNPfoOHxY25lgQeplXLChD1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4Bnie1SElAVCHSLWxjLmI3wvi8TGCDemyDIIMh40UIAiA8RekFNb8xKdoYQifvE0y3BLL2eADuKvu6N0Np3lbDSg=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.1.0":{"name":"modify-filename","version":"1.1.0","description":"Modify the filename in a path","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/modify-filename"},"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":["modify","change","replace","filename","file","name","path"],"devDependencies":{"ava":"0.0.4"},"gitHead":"d672c2faf0dd26991cd679953347b063c3e3dd7a","bugs":{"url":"https://github.com/sindresorhus/modify-filename/issues"},"homepage":"https://github.com/sindresorhus/modify-filename","_id":"modify-filename@1.1.0","_shasum":"9a2dec83806fbb2d975f22beec859ca26b393aa1","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9a2dec83806fbb2d975f22beec859ca26b393aa1","tarball":"https://registry.npmjs.org/modify-filename/-/modify-filename-1.1.0.tgz","integrity":"sha512-EickqnKq3kVVaZisYuCxhtKbZjInCuwgwZWyAmRIp1NTMhri7r3380/uqwrUHfaDiPzLVTuoNy4whX66bxPVog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHA+nUTeTGHYAJIl1qdsghmGPlJTtjQgNPg8byF5Y0RAiAkewbWNmruAesVoyFZquq5ekLLN7gkw4nO6lthij0nZg=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"modify-filename","version":"2.0.0","description":"Modify the filename in a path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/modify-filename.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"},"keywords":["modify","change","replace","filename","file","name","path"],"devDependencies":{"ava":"^3.15.0","xo":"^0.45.0"},"gitHead":"4fae6f5bcbdbb0652de0aa9700fc9e7fa4ccb418","bugs":{"url":"https://github.com/sindresorhus/modify-filename/issues"},"homepage":"https://github.com/sindresorhus/modify-filename#readme","_id":"modify-filename@2.0.0","_nodeVersion":"16.10.0","_npmVersion":"7.20.3","dist":{"integrity":"sha512-VX9/MdgUN9StpSLImJ0+AyV2dxJJtyojIwRHF/Ja942tW7FTzxXI186jDSTk4k5wj2+59a4bRzFnJUgMSi+ygg==","shasum":"48801ba7a59c24ac5b200f626f2e75ea9c0e6ad0","tarball":"https://registry.npmjs.org/modify-filename/-/modify-filename-2.0.0.tgz","fileCount":4,"unpackedSize":2739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2zf/CRA9TVsSAnZWagAAbVsP/0zHGkWK8WfFisLrPIfV\nYhUOGYiiK4VQLYaTN0+s13ac9E+3e8Oi6taKKIc0x9KatAvZvO+eMqQ8i5gb\n8JwiPKTBbqpnfGbF00zY5iq2eQx+MghWjTiSxxyhS+Nvb89WQfBWPfGUX/Md\nO53CRsB1aNBVs5vpf9EFCFBpQjQSdGUq1Q+v6+9QqkXCLjswkhpVFqY6IZDM\nbh4LFLVeABwszqhCGlZD2P+T8FEQt+/1pxbHYXLIDG6Wv1fMrb4A1kReeTdd\nCDD36suTmC8RTyAPpChyjDsEEL999ssfUPLhaZxc+OPFTjGbn/Vqta7fgu11\n8BttBWrS6UXv6ET33TJFTYuSdpFlBPaQOE97MmxvaUaJFapBvFXMJyI0y6yd\nnfBvk5asCPwid2W0G+lv0Mejx6SUokk/sWzz2Er+kzw6ipAx0yOlP/LU612y\nHJL0Gk+USDozHMYJSfUeOlFdEZA1yvPzYn0yz5nGkhoEe/EeXmnInlJ2QLlp\nCstOKP2ympu7NCEitEPUsqoXzVZtqjaezy5nLdpWeBJzQ3mJiDzTFNjy/uOW\nqWa/4v1rrtmSHk0Z6E7/aL7LDsv8QLwaEilMD3M0rjhRz2N/rxiUSviS94qM\nwrcyxTJgr7qo+NZDFe7ikOAQbiANS+gbZBBU5d+ebjFxImycTCxEnOtHHbRB\nzNIX\r\n=Yr0Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYJjby0D40WN2gz2ziDnh0o6Ek2e+TH6TMmIIHKD7x3AiARUq0Qe3R2h1RzEqYARnls//YxitidftOIcQ4GRe8cJQ=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-filename_2.0.0_1634553413960_0.7315391094546375"},"_hasShrinkwrap":false}},"readme":"# modify-filename\n\n> Modify the filename in a path\n\n## Install\n\n```sh\nnpm install modify-filename\n```\n\n## Usage\n\n```js\nimport modifyFilename from 'modify-filename';\n\nmodifyFilename('src/unicorn.png', (filename, extension) => {\n\treturn `${filename}-rainbow${extension}`;\n});\n//=> 'src/unicorn-rainbow.png'\n\nmodifyFilename(['src/unicorn.png', 'src/pony.png'], (filename, extension) => {\n\treturn `${filename}-rainbow${extension}`;\n});\n//=> ['src/unicorn-rainbow.png', 'src/pony-rainbow.png']\n```\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-06-16T22:44:33.281Z","created":"2015-05-22T20:40:58.838Z","1.0.0":"2015-05-22T20:40:58.838Z","1.1.0":"2015-06-27T00:24:34.906Z","2.0.0":"2021-10-18T10:36:54.086Z"},"homepage":"https://github.com/sindresorhus/modify-filename#readme","keywords":["modify","change","replace","filename","file","name","path"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/modify-filename.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/modify-filename/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"a3.ivanenko":true,"rocket0191":true,"flumpus-dev":true}}