summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/sha/package.json
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-07-31 09:05:30 -0700
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-07-31 09:05:30 -0700
commit1223cafea647e2af4580f4990dc313abf4f7a802 (patch)
tree86187cebe369b35e0075976cefcbe73fd58aede4 /deps/npm/node_modules/sha/package.json
parent4f1ae11a62b97052bc83756f8cb8700cc1f61661 (diff)
downloadnode-new-1223cafea647e2af4580f4990dc313abf4f7a802.tar.gz
npm: Upgrade to v1.4.21
Diffstat (limited to 'deps/npm/node_modules/sha/package.json')
-rw-r--r--deps/npm/node_modules/sha/package.json30
1 files changed, 23 insertions, 7 deletions
diff --git a/deps/npm/node_modules/sha/package.json b/deps/npm/node_modules/sha/package.json
index af9aa7adae..091919964a 100644
--- a/deps/npm/node_modules/sha/package.json
+++ b/deps/npm/node_modules/sha/package.json
@@ -1,6 +1,6 @@
{
"name": "sha",
- "version": "1.2.3",
+ "version": "1.2.4",
"description": "Check and get file hashes",
"scripts": {
"test": "mocha -R spec"
@@ -11,22 +11,38 @@
},
"license": "BSD",
"optionalDependencies": {
- "graceful-fs": "2",
+ "graceful-fs": "2 || 3",
"readable-stream": "1.0"
},
"devDependencies": {
"mocha": "~1.9.0"
},
- "readme": "# sha\r\n\r\nCheck and get file hashes (using any algorithm)\r\n\r\n[![Build Status](https://travis-ci.org/ForbesLindesay/sha.png?branch=master)](https://travis-ci.org/ForbesLindesay/sha)\r\n[![Dependency Status](https://gemnasium.com/ForbesLindesay/sha.png)](https://gemnasium.com/ForbesLindesay/sha)\r\n[![NPM version](https://badge.fury.io/js/sha.png)](http://badge.fury.io/js/sha)\r\n\r\n## Installation\r\n\r\n $ npm install sha\r\n\r\n## API\r\n\r\n### check(fileName, expected, [options,] cb) / checkSync(filename, expected, [options])\r\n\r\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).\r\n\r\nOptions:\r\n\r\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\r\n\r\n### get(fileName, [options,] cb) / getSync(filename, [options])\r\n\r\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.\r\n\r\nOptions:\r\n\r\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\r\n\r\n### stream(expected, [options])\r\n\r\nCheck the hash of a stream without ever buffering it. This is a pass through stream so you can do things like:\r\n\r\n```js\r\nfs.createReadStream('src')\r\n .pipe(sha.stream('expected'))\r\n .pipe(fs.createWriteStream('dest'))\r\n```\r\n\r\n`dest` will be a complete copy of `src` and an error will be emitted if the hash did not match `'expected'`.\r\n\r\nOptions:\r\n\r\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\r\n\r\n## License\r\n\r\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",
"bugs": {
"url": "https://github.com/ForbesLindesay/sha/issues"
},
"homepage": "https://github.com/ForbesLindesay/sha",
"dependencies": {
- "graceful-fs": "2",
+ "graceful-fs": "2 || 3",
"readable-stream": "1.0"
},
- "_id": "sha@1.2.3",
- "_from": "sha@~1.2.1"
+ "_id": "sha@1.2.4",
+ "dist": {
+ "shasum": "1f9a377f27b6fdee409b9b858e43da702be48a4d",
+ "tarball": "http://registry.npmjs.org/sha/-/sha-1.2.4.tgz"
+ },
+ "_from": "sha@latest",
+ "_npmVersion": "1.4.3",
+ "_npmUser": {
+ "name": "forbeslindesay",
+ "email": "forbes@lindeay.co.uk"
+ },
+ "maintainers": [
+ {
+ "name": "forbeslindesay",
+ "email": "forbes@lindesay.co.uk"
+ }
+ ],
+ "directories": {},
+ "_shasum": "1f9a377f27b6fdee409b9b858e43da702be48a4d",
+ "_resolved": "https://registry.npmjs.org/sha/-/sha-1.2.4.tgz"
}