{
"_from": "sha@3.0.0",
"_id": "sha@3.0.0",
"_inBundle": false,
"_integrity": "sha512-DOYnM37cNsLNSGIG/zZWch5CKIRNoLdYUQTQlcgkRkoYIUwDYjqDyye16YcDZg/OPdcbUgTKMjc4SY6TB7ZAPw==",
"_location": "/npm/sha",
"_phantomChildren": {},
"_requested": {
"escapedName": "sha",
"fetchSpec": "3.0.0",
"name": "sha",
"raw": "sha@3.0.0",
"rawSpec": "3.0.0",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm"
],
"_resolved": "https://registry.npmjs.org/sha/-/sha-3.0.0.tgz",
"_shasum": "b2f2f90af690c16a3a839a6a6c680ea51fedd1ae",
"_shrinkwrap": null,
"_spec": "sha@3.0.0",
"_where": "/Users/aeschright/code/cli",
"bugs": {
"url": "https://github.com/ForbesLindesay/sha/issues"
},
"bundleDependencies": false,
"dependencies": {
"graceful-fs": "^4.1.2"
},
"deprecated": false,
"description": "Check and get file hashes",
"devDependencies": {
"mocha": "~1.9.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/ForbesLindesay/sha#readme",
"license": "(BSD-2-Clause OR MIT)",
"name": "sha",
"optionalDependencies": {},
"readme": "# sha\n\nCheck and get file hashes (using any algorithm)\n\n[](https://travis-ci.org/ForbesLindesay/sha)\n[](https://david-dm.org/ForbesLindesay/sha)\n[](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.",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/ForbesLindesay/sha.git"
},
"scripts": {
"test": "mocha -R spec"
},
"version": "3.0.0"
}