UNPKG

motion

Version:

motion - moving development forward

78 lines (77 loc) 3.22 kB
{ "_args": [ [ "sha.js@https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "sha.js@2.2.6", "_id": "sha.js@2.2.6", "_inCache": true, "_location": "/sha.js", "_phantomChildren": {}, "_requested": { "name": "sha.js", "raw": "sha.js@https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "rawSpec": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "scope": null, "spec": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "type": "remote" }, "_requiredBy": [ "/crypto-browserify" ], "_resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "_shasum": "17ddeddc5f722fb66501658895461977867315ba", "_shrinkwrap": null, "_spec": "sha.js@https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "dominic.tarr@gmail.com", "name": "Dominic Tarr", "url": "dominictarr.com" }, "bin": { "sha.js": "./bin.js" }, "bugs": { "url": "https://github.com/dominictarr/sha.js/issues" }, "dependencies": {}, "description": "streaming sha1 hash in pure javascript", "devDependencies": { "buffer": "~2.3.2", "tape": "~2.3.2", "typedarray": "0.0.6" }, "homepage": "https://github.com/dominictarr/sha.js", "license": "MIT", "name": "sha.js", "optionalDependencies": {}, "readme": "# sha.js\n\nStreamable SHA1 hash in pure javascript.\n\n[![build status](https://secure.travis-ci.org/dominictarr/sha.js.png)](http://travis-ci.org/dominictarr/sha.js)\n\n[![testling badge](https://ci.testling.com/dominictarr/sha.js.png)](https://ci.testling.com/dominictarr/sha.js)\n\n## Example\n\n``` js\nvar createHash = require('sha.js')\n\nvar sha1 = createHash('sha1')\nvar sha256 = createHash('sha256')\nvar sha512 = createHash'sha512')\n\nvar h = sha1.update('abc', 'utf8').digest('hex')\nconsole.log(h) //a9993e364706816aba3e25717850c26c9cd0d89d\n```\n\n## supported hashes\n\nsha.js currently implements:\n\n* sha1\n* sha256\n* sha512\n\n## Note\n\nNote, this doesn't actually implement a stream, but wrapping this in a stream is trivial.\nbut is does update incrementally, so you can hash things larger than ram, and also, since it reuses\nthe typedarrays, it uses a constant amount of memory (except when using base64 or utf8 encoding,\nsee code comments)\n\n\n## Acknowledgements\n\nThis work is derived from Paul Johnston's [\"A JavaScript implementation of the Secure Hash Algorithm\"]\n(http://pajhome.org.uk/crypt/md5/sha1.html)\n\n\n\n## License\n\nMIT\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/dominictarr/sha.js.git" }, "scripts": { "test": "set -e; for t in test/*.js; do node $t; done;" }, "testling": { "browsers": [ "android-browser/4.2..latest", "chrome/22..latest", "chrome/canary", "firefox/17..latest", "firefox/nightly", "ie/8..latest", "ipad/6.0..latest", "iphone/6.0..latest", "opera/12..latest", "opera/next", "safari/5.1..latest" ], "files": "test/{vectors,write,hash}.js" }, "version": "2.2.6" }