{"_id":"rev-file","_rev":"9-e04e983f9ceaee2717d614569cdb1a7f","name":"rev-file","description":"Get the revved file path of a file","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"rev-file","version":"1.0.0","description":"Get the revved file path of a file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/rev-file"},"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":["rev","revving","web","file","name","filename","path","cache","caching","fs","hash","md5"],"dependencies":{"hasha":"^1.0.0","rev-hash":"^1.0.0","rev-path":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"70842b0ea79634de008282a66be2775d93b615ab","bugs":{"url":"https://github.com/sindresorhus/rev-file/issues"},"homepage":"https://github.com/sindresorhus/rev-file","_id":"rev-file@1.0.0","_shasum":"829f9b22acd0088af40731ec8a3f7b48e825b24a","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"829f9b22acd0088af40731ec8a3f7b48e825b24a","tarball":"https://registry.npmjs.org/rev-file/-/rev-file-1.0.0.tgz","integrity":"sha512-KOUoIUwMP3YDM8F5fpKxaP9APwg7uUsrbijI44SvZDsWlv9tP9RMiz6UoiSRZrjfNPAoQkV7TTB1TLAu9xTuYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2NfqsEEsM/d0cHi6uqJTSLWDo+XFfglAXeLGzsSRUjQIgBmXDqFwitw6tMv6Ij6Xko85wgRLA+G2NfsVwBOJoPoc="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"rev-file","version":"2.0.0","description":"Get the revved file path of a file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/rev-file"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["rev","revving","web","file","name","filename","path","cache","caching","fs","hash","md5"],"dependencies":{"hasha":"^2.0.2","rev-hash":"^1.0.0","rev-path":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"e93d858d3ffcc28dee24cba6c4cf2d8272019d38","bugs":{"url":"https://github.com/sindresorhus/rev-file/issues"},"homepage":"https://github.com/sindresorhus/rev-file","_id":"rev-file@2.0.0","_shasum":"745a097a5899b1446efaaf4fd681feed3d82bdbb","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"745a097a5899b1446efaaf4fd681feed3d82bdbb","tarball":"https://registry.npmjs.org/rev-file/-/rev-file-2.0.0.tgz","integrity":"sha512-Clu+xlNBeyEyssCK0QbIPjTCrBm6d2q0bhHhRk+ID9NsKZxf4q0rX0DeSXxD89skxvuTXtxA2A9ScXJFJ/eevw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICs9r3tpK5toxtB7X7iTYItdSpXRjZmGH4b6rcUA7wFwAiEAkRWZOmutDVpY+COw8uZ0nTHDv8MIY3RT+BtmXfad0qA="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"3.0.0":{"name":"rev-file","version":"3.0.0","description":"Get the revved file path of a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/rev-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["rev","revving","web","file","name","filename","path","cache","caching","fs","hash","md5"],"dependencies":{"hasha":"^3.0.0","rev-hash":"^2.0.0","rev-path":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"84b0b86b3dfea9fbbcaf4ce7dea3e52774a42e4a","bugs":{"url":"https://github.com/sindresorhus/rev-file/issues"},"homepage":"https://github.com/sindresorhus/rev-file#readme","_id":"rev-file@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-13vXpZB+84ZnT8SmbOb+54Vaj0BjLPjn9Q3o9pjNvReyGvMAx9LlFHcanP8WPhDb6ke+eZdNxKM8L1CeB3lsoQ==","shasum":"9bb027bee2efb820d14885c85f8c2934f458ce0b","tarball":"https://registry.npmjs.org/rev-file/-/rev-file-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsXJLkExeLA4oOj1huP2iy8UGOXPjEuz/4lEpFJZgCnAiEAnyCIW4gaGQHHqNYzobEysCxBFmb1D3BM3u9HJW9USWo="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rev-file-3.0.0.tgz_1507006978580_0.0881565900053829"},"directories":{}},"4.0.0":{"name":"rev-file","version":"4.0.0","description":"Get the revved file path of a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/rev-file.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":["rev","revving","web","file","name","filename","path","cache","caching","fs","hash","md5"],"dependencies":{"hasha":"^5.2.2","rev-hash":"^4.0.0","rev-path":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","xo":"^0.46.4"},"gitHead":"28d16153818730e87b6e41445dfe16095702f120","bugs":{"url":"https://github.com/sindresorhus/rev-file/issues"},"homepage":"https://github.com/sindresorhus/rev-file#readme","_id":"rev-file@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-IMAUf5fxQeUVIZ94oeCNXso3XtmfrW3MN0wC3j88kzDlU925zQLdMwMAMgaZu/zMAtgGaVEdl+7fujbru/O0MQ==","shasum":"fd912c5dd994d6946e2935f9c3af363e3732bd86","tarball":"https://registry.npmjs.org/rev-file/-/rev-file-4.0.0.tgz","fileCount":4,"unpackedSize":3008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh25y9CRA9TVsSAnZWagAASyEP/16f6LyaUBhyYiUw6SQN\nuqRABEoQSWmqMDLXySb+F/E0EuxLEFkZNGVf7YII6D0EwosJxxO+Cy5uaxa4\n4pwwK/TPA3Ro1Trzvb8bGFWQZfikA4FK2lnSSPOQMVCc9LmSklF9V4M4P3iy\npPGKHfry/UWl60In9VBQ42EDKW3j/tr1GLA2NNMsOQGprk2UjiIQYsZVwq4C\nOFkt95LKDfcnnijohqLg/Akh3whyIjoonDlaOLHuOAXyEZc6o7rFY2cqwM6G\n+aIfGT9xjlcebnoD2GFYnMUdVUfSAHnr/GRfX4j7tmBgtbnnyfmNsV7aNKNZ\npPdrlJ/tMRnG5SIMOvpNX1hpRwOwmLa4dYLvQM7JD3JURcI7OP1hfhlD8r5r\n5JkfHhoW2fqNvrSHSCIOdXAc1gWyItZPr0rUsGOejG/G8qiqdNaDJhnPJevi\nSNyTC1SUGuHnpIii8Qwn7gzr0clkq+L9Ik3gRfDIsGhAl2NyFMlQNegqCvw4\n1hxMAseBEsjIqZkhZbA3ECwU2o1mhlKIie/rwa3LJIZtHF2sYjHjnDRqg6/t\nGHNoABdcLoOstKP9BRXIKHGuO9zUNs/V98BiwGwBMeBamUm7V5l6gzofWzp6\niTG13J1/H91NZDqTIr0AWcjmR9MLn6oFLotzAiwpHbrykCqwV4Pm9q744saZ\n5eoM\r\n=3s3l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDrQxJz/ALTBtFZkJiYL547QrcsJOTqx1BO16BeMKapKAiBj0/mqYnGYT+El29XVhdw3SgYLn5ynlhWzxF1dY5l0Tw=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rev-file_4.0.0_1636614416576_0.1660707490647988"},"_hasShrinkwrap":false}},"readme":"# rev-file\n\n> Get the revved file path of a file\n\nReads the file, MD5-hashes it, truncates the hash to [10 characters](https://github.com/sindresorhus/rev-hash), appends it to the filename, and returns the modified path.\n\n## Install\n\n```sh\nnpm install rev-file\n```\n\n## Usage\n\n```js\nimport {revisionFile} from 'rev-file';\n\nconsole.log(await revisionFile('src/unicorn.png'));\n//=> 'src/unicorn-bb9d8fe615.png'\n```\n\n## API\n\n### revFile(filepath)\n\nReturns a `Promise` for a revved file path.\n\n### revFileSync(filepath)\n\nReturns a revved file path.\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-06-16T22:44:39.506Z","created":"2015-05-26T14:13:05.868Z","1.0.0":"2015-05-26T14:13:05.868Z","2.0.0":"2015-11-14T18:16:00.821Z","3.0.0":"2017-10-03T05:02:58.724Z","4.0.0":"2021-11-11T07:06:56.729Z"},"homepage":"https://github.com/sindresorhus/rev-file#readme","keywords":["rev","revving","web","file","name","filename","path","cache","caching","fs","hash","md5"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/rev-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/rev-file/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"flumpus-dev":true}}