{"_id":"hash_file","_rev":"29-2b6104e7a858ba66f51f8cd981d98253","name":"hash_file","description":"A simple utility for getting a hash of a file","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.5":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.0.5","tags":["sha1","file"],"repository":{"type":"git","url":"git://github.com/secoif/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha --timeout 10000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.1.15"},"_npmUser":{"name":"secoif","email":"secoif@gmail.com"},"_id":"hash_file@0.0.5","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.3","_defaultsLoaded":true,"dist":{"shasum":"9fa2d0d2ad1894f69dfbc78edab1a759540c32fe","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.0.5.tgz","integrity":"sha512-cZoIQvDlO1gvctNyG54HQ3f/WLyIeqTrzJDwdWunfbWL2GVOEzfDswya9V074dJjLpoTXWcfvPUYf6ZQkfhV0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs1XRbNnRSwCQ2P8vW4jxbChMs+tuvQyOYZiMNSSRBbAIgZQiupiwcS6JTfv9dE6/5Rcch+Nx87n5i+th10Jg/RKY="}]},"maintainers":[{"name":"secoif","email":"secoif@gmail.com"}]},"0.0.6":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.0.6","keywords":["hash","md5","sha1","crypto","file"],"repository":{"type":"git","url":"git://github.com/secoif/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha --timeout 10000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.1.15"},"_npmUser":{"name":"secoif","email":"secoif@gmail.com"},"_id":"hash_file@0.0.6","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.3","_defaultsLoaded":true,"dist":{"shasum":"b136b8430b3a0bf056c1471aec63d476cad9d48a","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.0.6.tgz","integrity":"sha512-0VctkW8rXFpBuR3GF0fBoNjlqMhkr0P1PnsLhfyPtoGYPbke1BO82J9Rf/aKGcjR2FSMoX70ka9MvD5tH1nWVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCs1i+0o93iDQRps81sz3ebgxfhPPzIsPv+3uwlCpbjwIgWyb8oykAEM6ewPUH5/dqpViRjP3CtFxlU7Ni4lNhqRw="}]},"maintainers":[{"name":"secoif","email":"secoif@gmail.com"}]},"0.0.7":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.0.7","keywords":["hash","md5","sha1","crypto","file"],"repository":{"type":"git","url":"git://github.com/secoif/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.4.0"},"scripts":{"test":"mocha --timeout 10000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.1.15"},"_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"_id":"hash_file@0.0.7","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"018d34f771f5abef9201f2f1d2bfdff18083c18d","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.0.7.tgz","integrity":"sha512-YqFGWdsJ6RSENwoaHiR/x+RVWZYXID+SYUFGwICoDMfMKiF51DdG7dHzGUiqoxt5qdlHyoWQeo5HP2jPL2cKMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4AKqPtQ3vwtnzzVANB+FyUQepGOSacuDmRlsgeEzlggIgJDJ46JKrh4paHeV7qBEGiuBqOp3z8fYkdMUQSki0bQo="}]},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]},"0.0.8":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.0.8","keywords":["hash","md5","sha1","crypto","file"],"repository":{"type":"git","url":"git://github.com/timoxley/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.4.0"},"scripts":{"test":"./node_modules/.bin/mocha -t 60000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.1.15","mocha":"~0.14.0"},"optionalDependencies":{},"homepage":"https://github.com/timoxley/hash_file","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"_id":"hash_file@0.0.8","_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"c2217be005aef14755fdb4c5f6c38bd7448e8e7b","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.0.8.tgz","integrity":"sha512-HXFOg7A7Thk2ntXgVhNozJwySQVK6bKvThd1PtXAGgll0H/gOim/2mXFSDMWYfYAqkO2ZBUFKsCTHSxJrhzyQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgzu5/bRvTRO8kchaFs9lKpOF6A4KizxR24L05WbhoigIhAJGj3kcI81Tdqjs8F7FTWM+frMW05TE3iFaa2LE7l+tM"}]},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]},"0.1.0":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.1.0","keywords":["hash","md5","sha1","crypto","file"],"repository":{"type":"git","url":"git://github.com/timoxley/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.6.0"},"scripts":{"test":"./node_modules/.bin/mocha -t 60000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.1.15","mocha":"~0.14.0"},"optionalDependencies":{},"homepage":"https://github.com/timoxley/hash_file","readme":"[![build status](https://secure.travis-ci.org/timoxley/hash_file.png)](http://travis-ci.org/timoxley/hash_file)\n# Hash File\n\nA simple utility for getting the hash of a file or Buffer.\n\n### Supported Hash Types\n\n* MD4\n* MD5\n* SHA1\n* SHA256\n\n## Installation\n```\nnpm install hash_file\n```\n\n## Usage \n\n```js\nvar hash_file = require('hash_file')\n\n// get md5\nhash_file('./README.md', 'md5', function(err, hash) {\n  console.log('md5:', hash)\n})\n\n// get sha1 \nhash_file('./README.md', 'sha1', function(err, hash) {\n  console.log('sha1:', hash)\n})\n\n// get sha256 \nhash_file('./README.md', 'sha256', function(err, hash) {\n  console.log('sha256:', hash)\n})\n\n// on a Buffer\nvar buf = crypto.randomBytes(1024)\nhash_file(buf, 'md5', function (err, hash) {\n  console.log('md5:', hash)\n})\n// or simply:\nconsole.log('md5:', hash_file(buf, 'md5'))\n```\n\n## Running the tests\n\n```sh\nnpm install --dev\nnpm test\n```\n\n## Credits\n\nCode adapted from Gregor Schwab greg@synaptic-labs.net ([dotmaster](http://github.com/dotmaster))\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Gregor Schwab &lt;dev@synaptic-labs.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/timoxley/hash_file/issues"},"_id":"hash_file@0.1.0","dist":{"shasum":"56674d5c1a7f72910f7fa966b6277ecb4c90a834","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.1.0.tgz","integrity":"sha512-5aEHlgyNJCxruHE4MDhT7jPichnd5mhUQ5XS7V6syawCSU2Y9sb0TlI7DwoelLP3MH6yniPj/XWodBVwkfVstA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMF+uHi5ig6pT8p5cdE2WMQpzLHE8EExf2YRWLFLehFAIhAP80bMPA5IPHu827nrF0o22oADMrYB7YP6kJ1xT7sNcE"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]},"0.1.1":{"name":"hash_file","description":"A simple utility for getting a hash of a file","version":"0.1.1","keywords":["hash","md5","sha1","crypto","file"],"repository":{"type":"git","url":"git://github.com/timoxley/hash_file.git"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"main":"hash_file.js","directories":{"lib":"."},"engines":{"node":">=0.6.0"},"scripts":{"test":"./node_modules/.bin/mocha -t 60000 ./test/test.js"},"dependencies":{},"devDependencies":{"async":"~0.2.9","mocha":"~1.13.0"},"optionalDependencies":{},"homepage":"https://github.com/timoxley/hash_file","readme":"[![build status](https://secure.travis-ci.org/timoxley/hash_file.png)](http://travis-ci.org/timoxley/hash_file)\n# Hash File\n\nA simple utility for getting the hash of a file or Buffer.\n\n### Supported Hash Types\n\n* MD4\n* MD5\n* SHA1\n* SHA256\n\n## Installation\n```\nnpm install hash_file\n```\n\n## Usage \n\n```js\nvar hash_file = require('hash_file')\n\n// get md5\nhash_file('./README.md', 'md5', function(err, hash) {\n  console.log('md5:', hash)\n})\n\n// get sha1 \nhash_file('./README.md', 'sha1', function(err, hash) {\n  console.log('sha1:', hash)\n})\n\n// get sha256 \nhash_file('./README.md', 'sha256', function(err, hash) {\n  console.log('sha256:', hash)\n})\n\n// on a Buffer\nvar buf = crypto.randomBytes(1024)\n\nhash_file(buf, 'md5', function (err, hash) {\n  console.log('md5:', hash)\n})\n\n// or simply:\nconsole.log('md5:', hash_file(buf, 'md5'))\n```\n\n## Running the tests\n\n```sh\n> npm install\n> npm test\n```\n\n## Credits\n\nCode originally adapted from Gregor Schwab greg@synaptic-labs.net ([dotmaster](http://github.com/dotmaster))\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Gregor Schwab &lt;dev@synaptic-labs.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/timoxley/hash_file/issues"},"_id":"hash_file@0.1.1","dist":{"shasum":"3210e85dfb4ed6eb640351e02a48b0d0db327878","tarball":"https://registry.npmjs.org/hash_file/-/hash_file-0.1.1.tgz","integrity":"sha512-gF6sQqCi0CYu9Q/hg/cyUZkQfQC0v0BGbCwOVolSTicybSg6A39Cjy+rS/TityjGnagqM77Yh3CUsmJkxaLqgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqrQowq+VmSRsqRkEqykRqIKaHM62+yrvjJ1SarjcUlAiEA9fSn6gAnmHidMoAnl2iDSa1vYzoWkQUSAkDbSDt/Lfc="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}]}},"readme":"Hash File: A simple utility for getting the hash of a file\n============================================\n\nThis module is a super simple, super fast (using file stream) utility for getting the SHA1 hash of a file \n\n### Supported Hash Types\n\n* md5\n* sha1\n* sha256\n\n## Installation\n```\n  npm install hash_file\n```\n\nor\n\n```\n  git clone https://github.com/secoif/hash_file\n```\n\n## Usage \n\n```javascript\nvar hash_file = require('hash_file')\n\nhash_file('./README.md', 'md5', function(err, hash) {\n  console.log(hash)\n})\n```\n\n## Running the tests\n\n```shell\nnpm install --dev\nnpm test\n```\n\n## Credits\n\nOriginal Module Author - Gregor Schwab &lt;greg@synaptic-labs.net&gt; ([dotmaster](http://github.com/dotmaster))\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Gregor Schwab &lt;dev@synaptic-labs.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"timoxley","email":"secoif@gmail.com"}],"time":{"modified":"2022-06-18T19:29:05.197Z","created":"2011-11-28T16:48:32.118Z","0.0.5":"2011-11-28T16:48:36.096Z","0.0.6":"2011-11-28T16:51:57.011Z","0.0.7":"2012-02-03T01:16:28.139Z","0.0.8":"2012-03-08T20:37:23.547Z","0.1.0":"2013-07-19T06:00:55.328Z","0.1.1":"2013-10-27T03:25:34.582Z"},"author":{"name":"Tim Oxley","email":"secoif@gmail.com","url":"http://unit.io"},"repository":{"type":"git","url":"git://github.com/timoxley/hash_file.git"},"users":{"tunnckocore":true,"magemagic":true}}