{"_id":"sha","_rev":"141151","name":"sha","description":"Check and get file hashes","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"time":{"modified":"2021-06-03T11:26:58.000Z","created":"2013-04-27T11:38:38.034Z","3.0.0":"2019-01-23T12:20:37.136Z","2.0.1":"2015-09-11T16:12:05.969Z","2.0.0":"2015-09-06T17:26:16.072Z","1.3.0":"2014-09-14T15:03:48.624Z","1.2.4":"2014-06-06T09:54:06.933Z","1.2.3":"2013-08-21T12:33:37.517Z","1.2.2":"2013-08-18T11:34:46.075Z","1.2.1":"2013-07-22T19:12:28.488Z","1.2.0":"2013-07-07T00:19:55.556Z","1.1.0":"2013-06-25T01:06:43.125Z","1.0.1":"2013-04-28T04:13:25.066Z","1.0.0":"2013-04-27T11:38:38.034Z"},"users":{"itonyyo":true,"mattmcfarland":true},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/sha.git"},"versions":{"3.0.0":{"name":"sha","version":"3.0.0","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/sha.git"},"license":"(BSD-2-Clause OR MIT)","dependencies":{"graceful-fs":"^4.1.2"},"devDependencies":{"mocha":"~1.9.0"},"gitHead":"d954fa9723b0d476be1d257586ce51010e7ee106","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"homepage":"https://github.com/ForbesLindesay/sha#readme","_id":"sha@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"b2f2f90af690c16a3a839a6a6c680ea51fedd1ae","size":2869,"noattachment":false,"key":"/sha/-/sha-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-3.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sha_3.0.0_1548246037052_0.04883084989316311"},"_hasShrinkwrap":false,"publish_time":1548246037136,"_cnpm_publish_time":1548246037136},"2.0.1":{"name":"sha","version":"2.0.1","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"(BSD-2-Clause OR MIT)","dependencies":{"graceful-fs":"^4.1.2","readable-stream":"^2.0.2"},"devDependencies":{"mocha":"~1.9.0"},"gitHead":"ce7c72ba753d886fb46c396cbadcbfc8eac25b4f","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"homepage":"https://github.com/ForbesLindesay/sha","_id":"sha@2.0.1","_shasum":"6030822fbd2c9823949f8f72ed6411ee5cf25aae","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"dist":{"shasum":"6030822fbd2c9823949f8f72ed6411ee5cf25aae","size":3576,"noattachment":false,"key":"/sha/-/sha-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-2.0.1.tgz"},"directories":{},"publish_time":1441987925969,"_cnpm_publish_time":1441987925969,"_hasShrinkwrap":false},"2.0.0":{"name":"sha","version":"2.0.0","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"(BSD-2-Clause OR MIT)","dependencies":{"graceful-fs":"^4.1.2"},"devDependencies":{"mocha":"~1.9.0"},"gitHead":"ec239241112ded2b90d6d2438c9478fce660a2d8","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"homepage":"https://github.com/ForbesLindesay/sha","_id":"sha@2.0.0","_shasum":"a010d5cceca726fd7666bd20fdf2ca6439c0415f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"dist":{"shasum":"a010d5cceca726fd7666bd20fdf2ca6439c0415f","size":3613,"noattachment":false,"key":"/sha/-/sha-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-2.0.0.tgz"},"directories":{},"publish_time":1441560376072,"_cnpm_publish_time":1441560376072,"_hasShrinkwrap":false},"1.3.0":{"name":"sha","version":"1.3.0","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"2 || 3","readable-stream":"~1.1"},"devDependencies":{"mocha":"~1.9.0"},"gitHead":"f1985eefbf7538e5809a2157c728d2f740901600","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"homepage":"https://github.com/ForbesLindesay/sha","dependencies":{"graceful-fs":"2 || 3","readable-stream":"~1.1"},"_id":"sha@1.3.0","_shasum":"79f4787045d0ede7327d702c25c443460dbc6764","_from":".","_npmVersion":"1.5.0-alpha-4","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"dist":{"shasum":"79f4787045d0ede7327d702c25c443460dbc6764","size":3038,"noattachment":false,"key":"/sha/-/sha-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.3.0.tgz"},"directories":{},"publish_time":1410707028624,"_cnpm_publish_time":1410707028624,"_hasShrinkwrap":false},"1.2.4":{"name":"sha","version":"1.2.4","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"2 || 3","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"homepage":"https://github.com/ForbesLindesay/sha","dependencies":{"graceful-fs":"2 || 3","readable-stream":"1.0"},"_id":"sha@1.2.4","dist":{"shasum":"1f9a377f27b6fdee409b9b858e43da702be48a4d","size":3062,"noattachment":false,"key":"/sha/-/sha-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.2.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1402048446933,"_cnpm_publish_time":1402048446933,"_hasShrinkwrap":false},"1.2.3":{"name":"sha","version":"1.2.3","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"2","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"dependencies":{"graceful-fs":"2","readable-stream":"1.0"},"_id":"sha@1.2.3","dist":{"shasum":"3a96ef3054a0fe0b87c9aa985824a6a736fc0329","size":3046,"noattachment":false,"key":"/sha/-/sha-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.2.3.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1377088417517,"_hasShrinkwrap":false,"_cnpm_publish_time":1377088417517},"1.2.2":{"name":"sha","version":"1.2.2","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"2","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"dependencies":{"graceful-fs":"2","readable-stream":"1.0"},"_id":"sha@1.2.2","dist":{"shasum":"f2aa387e8182631fd5f462bd80250d37a8920e62","size":3044,"noattachment":false,"key":"/sha/-/sha-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.2.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1376825686075,"_hasShrinkwrap":false,"_cnpm_publish_time":1376825686075},"1.2.1":{"name":"sha","version":"1.2.1","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"2","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"dependencies":{"graceful-fs":"2","readable-stream":"1.0"},"_id":"sha@1.2.1","dist":{"shasum":"30bd5f770852fa6ac2b110ab3698fd4840f7f1cd","size":3030,"noattachment":false,"key":"/sha/-/sha-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.2.1.tgz"},"_from":".","_npmVersion":"1.3.4","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1374520348488,"_hasShrinkwrap":false,"_cnpm_publish_time":1374520348488},"1.2.0":{"name":"sha","version":"1.2.0","description":"Check and get file hashes","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"1.2","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","_id":"sha@1.2.0","dependencies":{"graceful-fs":"1.2","readable-stream":"1.0"},"dist":{"shasum":"e8ec0307a8e5a57bbad0bd6e6c31ac94abf69603","size":3046,"noattachment":false,"key":"/sha/-/sha-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.2.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1373156395556,"_hasShrinkwrap":false,"_cnpm_publish_time":1373156395556},"1.1.0":{"name":"sha","version":"1.1.0","description":"Check and get file hashes","scripts":{"test":"mocha -R list"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"1.2","readable-stream":"1.0"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","_id":"sha@1.1.0","dependencies":{"graceful-fs":"1.2","readable-stream":"1.0"},"dist":{"shasum":"41bccc1cea2c39483afc74153cdf50826a648f32","size":2902,"noattachment":false,"key":"/sha/-/sha-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.1.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1372122403125,"_hasShrinkwrap":false,"_cnpm_publish_time":1372122403125},"1.0.1":{"name":"sha","version":"1.0.1","description":"Check and get file hashes","scripts":{"test":"mocha -R list"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"1.2"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","_id":"sha@1.0.1","dependencies":{"graceful-fs":"1.2"},"dist":{"shasum":"9b87a92113103e7406f7e7ef00006f3fa1975122","size":1365,"noattachment":false,"key":"/sha/-/sha-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.0.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1367122405066,"_hasShrinkwrap":false,"_cnpm_publish_time":1367122405066},"1.0.0":{"name":"sha","version":"1.0.0","description":"Check and get file hashes","scripts":{"test":"mocha -R list"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/sha.git"},"license":"BSD","optionalDependencies":{"graceful-fs":"1.2"},"devDependencies":{"mocha":"~1.9.0"},"readmeFilename":"README.md","_id":"sha@1.0.0","dependencies":{"graceful-fs":"1.2"},"dist":{"shasum":"411b76feb700cf2eed638be5ad76cc79eefc2060","size":388297,"noattachment":false,"key":"/sha/-/sha-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sha/download/sha-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"kenan","email":"kenan@kenany.me"},{"name":"npm:forbeslindesay","email":""},{"name":"npm:kenan","email":""},{"name":"npm:thefourtheye","email":""},{"name":"thefourtheye","email":"thechargingvolcano@gmail.com"}],"directories":{},"publish_time":1367062718034,"_hasShrinkwrap":false,"_cnpm_publish_time":1367062718034}},"readme":"# sha\n\nCheck and get file hashes (using any algorithm)\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/sha/master.svg)](https://travis-ci.org/ForbesLindesay/sha)\n[![Dependency Status](https://img.shields.io/david/ForbesLindesay/sha.svg)](https://david-dm.org/ForbesLindesay/sha)\n[![NPM version](https://img.shields.io/npm/v/sha.svg)](https://www.npmjs.com/package/sha)\n\n## Installation\n\n    $ npm install sha\n\n## API\n\n### check(fileName, expected, [options,] cb) / checkSync(filename, expected, [options])\n\nAsynchronously check that `fileName` has a \"hash\" of `expected`.  The callback will be called with either `null` or an error (indicating that they did not match).\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n### get(fileName, [options,] cb) / getSync(filename, [options])\n\nAsynchronously get the \"hash\" of `fileName`.  The callback will be called with an optional `error` object and the (lower cased) hex digest of the hash.\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n### stream(expected, [options])\n\nCheck the hash of a stream without ever buffering it.  This is a pass through stream so you can do things like:\n\n```js\nfs.createReadStream('src')\n  .pipe(sha.stream('expected'))\n  .pipe(fs.createWriteStream('dest'))\n```\n\n`dest` will be a complete copy of `src` and an error will be emitted if the hash did not match `'expected'`.\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n## License\n\nYou may use this software under the BSD or MIT.  Take your pick.  If you want me to release it under another license, open a pull request.","_attachments":{},"homepage":"https://github.com/ForbesLindesay/sha#readme","bugs":{"url":"https://github.com/ForbesLindesay/sha/issues"},"license":"(BSD-2-Clause OR MIT)"}