{"_id":"node-sha1","_rev":"8-4987f412f19d23a64ad77b857a114c9e","name":"node-sha1","description":"Exports a SHA1 function that uses node's crpyto module under the hood","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"node-sha1","version":"0.0.1","description":"Exports a SHA1 function that uses node's crpyto module under the hood","main":"lib/sha1.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/leahciMic/node-sha1"},"keywords":["sha1","crypto"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/leahciMic/node-sha1/issues"},"_id":"node-sha1@0.0.1","dist":{"shasum":"5662fc799f1c3c95d93e3015dd048065514985d3","tarball":"https://registry.npmjs.org/node-sha1/-/node-sha1-0.0.1.tgz","integrity":"sha512-oFKtTwHqOeS8I/Iq3HWbPMeak6RBwpoJdl59gxEvu+BAMSvxHds9lOq5D14UdzCGzXhDKs/AiqOXMiYBJLuSfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1NWCgX2Vt28PR9xe4tmVaynJnXKZXXT2SbJaG9i4wOQIhAOhb/v8aPsq3ljiEp31ivsx7tN9O5SdvYZCQupnZsUXp"}]},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]},"0.0.2":{"name":"node-sha1","version":"0.0.2","description":"Exports a SHA1 function that uses node's crpyto module under the hood","main":"lib/sha1.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/node-sha1.git"},"keywords":["sha1","crypto","hash","digest","stream","buffer","string"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/leahciMic/node-sha1/issues"},"devDependencies":{"jasmine":"^2.3.2"},"gitHead":"4a5b07bdbc9813d7fb69ead221e64ce520144988","homepage":"https://github.com/leahciMic/node-sha1#readme","_id":"node-sha1@0.0.2","_shasum":"d3b01b7584165029ef83a067636a468447072dd4","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"d3b01b7584165029ef83a067636a468447072dd4","tarball":"https://registry.npmjs.org/node-sha1/-/node-sha1-0.0.2.tgz","integrity":"sha512-a3qyeqwiD7MhBVo2KbijLvs4yMtQJbJ2+Ohhbx//worbDDxgSrIThJe2X0lnG8cR9GlQ2/R+lduEZpAYIeJa1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8P7K356x7zJscBBGAxXUfdHiNoj1nbJoKHBjlzqCfmgIgUfoCUYU6zO8WPz6ZSJfuo3ch1vhhs7Ie8phC/s0x4ME="}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]},"1.0.0":{"name":"node-sha1","version":"1.0.0","description":"Exports a SHA1 function that uses node's crpyto module under the hood","main":"lib/sha1.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/node-sha1.git"},"keywords":["sha1","crypto","hash","digest","stream","buffer","string"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/leahciMic/node-sha1/issues"},"devDependencies":{"jasmine":"^2.3.2"},"gitHead":"d949262cf9dd982299ad0cc3bf321276cc1b0426","homepage":"https://github.com/leahciMic/node-sha1#readme","_id":"node-sha1@1.0.0","_shasum":"dd312783c45bf02f7eaf751227750e2e74c4629c","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"dd312783c45bf02f7eaf751227750e2e74c4629c","tarball":"https://registry.npmjs.org/node-sha1/-/node-sha1-1.0.0.tgz","integrity":"sha512-IEgYtiuhbwVES8j7mvMGQTIHPLOLzmgtVYynEYWuZaJE/UyaIvoZknOnnXoY6LCvjTpCG0cqSKHtlK/AidfgNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwU7EyER2jNt5CEsjF0SFM+gXAk1Nzve8pXmHE9ASmWAiAWwy61zQbdqYxo4eqJ+VRthKOXHN/ZGAhCaGXtnyDa2w=="}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]},"1.0.1":{"name":"node-sha1","version":"1.0.1","description":"Exports a SHA1 function that uses node's crpyto module under the hood","main":"lib/sha1.js","scripts":{"test":"jasmine"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/node-sha1.git"},"keywords":["sha1","crypto","hash","digest","stream","buffer","string"],"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/leahciMic/node-sha1/issues"},"devDependencies":{"jasmine":"^2.3.2"},"gitHead":"48db79bacb1f8c681a9f308c96ed42bfb7cfdb43","homepage":"https://github.com/leahciMic/node-sha1#readme","_id":"node-sha1@1.0.1","_shasum":"32ed847d8513157b96dec6b79e8c47bcaeb78e1c","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"leahcimic","email":"leahcimic@gmail.com"},"dist":{"shasum":"32ed847d8513157b96dec6b79e8c47bcaeb78e1c","tarball":"https://registry.npmjs.org/node-sha1/-/node-sha1-1.0.1.tgz","integrity":"sha512-GQ560BO4Bzw0JuUysMNwxG1X4I30XH3VR4MMd5KAj4MwC6FsqwDTFy7LmsnZMJVQ8W41LKq+AJ4DcQs/puwM0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG881O2WKNouyZ86+WL+Z+zXSdcD+eTjyFhmUtGrjUerAiBpdWUzqTB+2INe2BO1CCGhDhEaH2MqRqcp6MZjlORuPg=="}]},"maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}]}},"readme":"# node-sha1 [![Build Status](https://travis-ci.org/leahciMic/node-sha1.svg?branch=master)](https://travis-ci.org/leahciMic/node-sha1)\n\nProvides you with a convenient sha1 function that uses Node's crypto module\nunder the hood.\n\n## Install\n`npm install node-sha1 --save`\n\n## Usage\n```javascript\nvar sha1 = require('node-sha1');\nsha1('Hello World!'); # 2ef7bde608ce5404e97d5f042f95f89f1c232871\n```\n\n## API\n\n`sha1(what, callback)`\n\n### what\n\nCan be a string, buffer, or even a stream (stream requires a callback).\n\nIf what is a string, or a buffer the hash will be returned, if a callback\nis registered it will also be called with the resulting hash.\n\nIf what is a stream, it will throw if a callback is not registered. Otherwise\nit will call the callback with the resulting hash.\n\n### callback(err, hash)\n\n`err` any errors that occurred, or undefined if no errors occurred. `hash` is\nthe resulting hash. If a callback is registered it will be called with the\nresulting hash regardless if a stream, string, or buffer is used.\n\n## Examples\n\n### Use with strings\n\n```js\nvar sha1 = require('node-sha1');\nsha1('Hello World!'); # 2ef7bde608ce5404e97d5f042f95f89f1c232871\n```\n\n### Use with buffers\n\n```js\nvar sha1 = require('node-sha1');\nvar buffer = new Buffer('Hello World!');\nsha1(buffer); # 2ef7bde608ce5404e97d5f042f95f89f1c232871\n```\n\n### Use with streams\n\n```js\nvar sha1 = require('node-sha1');\n\nutil.inherits(FakeStream, stream.Readable);\n\nfunction FakeStream() {\n  this._finished = false;\n  stream.Readable.call(this);\n}\n\nFakeStream.prototype._read = function() {\n  if (this._finished) {\n    this.push(null);\n    return;\n  }\n  this._finished = true;\n  this.push('Hello World!');\n};\n\nvar fakeStream = new FakeStream();\nsha1(fakeStream, function(err, hash) {\n  # hash = 2ef7bde608ce5404e97d5f042f95f89f1c232871\n})\n```\n","maintainers":[{"name":"leahcimic","email":"leahcimic@gmail.com"}],"time":{"modified":"2022-06-21T21:37:39.028Z","created":"2013-08-23T08:10:37.145Z","0.0.1":"2013-08-23T08:10:42.374Z","0.0.2":"2015-09-11T04:15:31.650Z","1.0.0":"2015-09-11T04:15:50.517Z","1.0.1":"2015-09-11T04:21:52.362Z"},"author":{"name":"Michael Leaney","email":"leahcimic@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/leahciMic/node-sha1.git"},"homepage":"https://github.com/leahciMic/node-sha1#readme","keywords":["sha1","crypto","hash","digest","stream","buffer","string"],"bugs":{"url":"https://github.com/leahciMic/node-sha1/issues"},"license":"ISC","readmeFilename":"README.md"}