{"_id":"hasha","_rev":"4283701","name":"hasha","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","dist-tags":{"latest":"7.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-07T20:17:41.000Z","created":"2015-05-23T09:32:26.579Z","7.0.0":"2025-09-12T17:09:04.324Z","6.0.0":"2023-11-11T12:40:52.269Z","5.2.2":"2020-10-09T00:23:42.371Z","5.2.1":"2020-09-27T12:37:42.740Z","5.2.0":"2020-02-16T13:04:06.888Z","5.1.0":"2019-09-22T08:22:48.889Z","5.0.0":"2019-04-05T07:21:44.671Z","4.0.1":"2019-03-13T11:27:42.345Z","4.0.0":"2019-03-12T04:42:37.112Z","3.0.0":"2017-05-10T02:07:13.229Z","2.2.0":"2015-12-24T12:56:57.684Z","2.1.0":"2015-12-23T21:37:24.549Z","2.0.2":"2015-09-23T06:45:46.562Z","2.0.1":"2015-09-01T10:44:53.062Z","2.0.0":"2015-09-01T08:54:52.977Z","1.0.1":"2015-06-12T18:45:29.779Z","1.0.0":"2015-05-23T09:32:26.579Z"},"users":{"axelav":true,"chocolateboy":true,"cilindrox":true,"ridermansb":true,"jfernandezgersol":true,"456wyc":true,"iwasawafag":true,"ajsb85":true,"rocket0191":true,"zalithka":true,"l3au":true,"bhaskarmelkani":true,"wayn":true,"xinwangwang":true,"cr8tiv":true,"zhenguo.zhao":true,"stovmascript":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"versions":{"7.0.0":{"name":"hasha","version":"7.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && node --test && tsc index.d.ts"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^4.0.1","type-fest":"^4.41.0"},"devDependencies":{"@types/node":"^24.3.1","esmock":"^2.7.3","typescript":"^5.9.2","xo":"^1.2.2"},"xo":{"rules":{"unicorn/no-await-expression-member":"off","n/prefer-global/buffer":"off"}},"_id":"hasha@7.0.0","gitHead":"1d6c692683627cad5c1dbcf42bdc8cb84816ab8e","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"b3d7f1f32fb4919d9a77da07820625ab6748f47a","size":6024,"noattachment":false,"key":"/hasha/-/hasha-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hasha_7.0.0_1757696944135_0.5867226899387548"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-12T17:09:04.324Z","publish_time":1757696944324,"_source_registry_name":"default","_cnpm_publish_time":1757696944324},"6.0.0":{"name":"hasha","version":"6.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^3.0.0","type-fest":"^4.7.1"},"devDependencies":{"@types/node":"^20.9.0","ava":"^5.3.1","esmock":"^2.6.0","tsd":"^0.29.0","xo":"^0.56.0"},"xo":{"rules":{"unicorn/no-await-expression-member":"off","n/prefer-global/buffer":"off"}},"types":"./index.d.ts","gitHead":"0ea6070fdd11d656097719c06b3134cc111ee5d0","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@6.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"shasum":"bdf1231ae40b406121c09c13705e5b38c1bb607c","size":4599,"noattachment":false,"key":"/hasha/-/hasha-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_6.0.0_1699706452054_0.1308471841501635"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-11T12:40:52.269Z","publish_time":1699706452269,"_source_registry_name":"default","_cnpm_publish_time":1699706452269},"5.2.2":{"name":"hasha","version":"5.2.2","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^2.0.0","type-fest":"^0.8.0"},"devDependencies":{"@types/node":"^12.7.5","ava":"^2.4.0","proxyquire":"^2.1.0","tsd":"^0.8.0","xo":"^0.24.0"},"xo":{"rules":{"import/no-unresolved":"off"}},"gitHead":"6e9d961913bd446167b23007e76bd00ef470736c","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@5.2.2","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a48477989b3b327aea3c04f53096d816d97522a1","size":4930,"noattachment":false,"key":"/hasha/-/hasha-5.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-5.2.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_5.2.2_1602203022226_0.7607685003966875"},"_hasShrinkwrap":false,"publish_time":1602203022371,"_cnpm_publish_time":1602203022371},"5.2.1":{"name":"hasha","version":"5.2.1","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^2.0.0","type-fest":"^0.8.0"},"devDependencies":{"@types/node":"^12.7.5","ava":"^2.4.0","proxyquire":"^2.1.0","tsd":"^0.8.0","xo":"^0.24.0"},"xo":{"rules":{"import/no-unresolved":"off"}},"gitHead":"0184c7126d1ccf08ba8b28daa5355b634188bf90","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@5.2.1","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0e5b492aa40de3819e80955f221d2fccef55b5aa","size":4939,"noattachment":false,"key":"/hasha/-/hasha-5.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-5.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_5.2.1_1601210262551_0.6942955914665843"},"_hasShrinkwrap":false,"publish_time":1601210262740,"_cnpm_publish_time":1601210262740},"5.2.0":{"name":"hasha","version":"5.2.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^2.0.0","type-fest":"^0.8.0"},"devDependencies":{"@types/node":"^12.7.5","ava":"^2.4.0","proxyquire":"^2.1.0","tsd":"^0.8.0","xo":"^0.24.0"},"xo":{"rules":{"import/no-unresolved":"off"}},"gitHead":"c93f8230153a35d1bbe5a3d274a688107792d2ec","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@5.2.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"33094d1f69c40a4a6ac7be53d5fe3ff95a269e0c","size":4942,"noattachment":false,"key":"/hasha/-/hasha-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-5.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_5.2.0_1581858246350_0.7998151348387368"},"_hasShrinkwrap":false,"publish_time":1581858246888,"_cnpm_publish_time":1581858246888},"5.1.0":{"name":"hasha","version":"5.1.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^2.0.0","type-fest":"^0.8.0"},"devDependencies":{"@types/node":"^12.7.5","ava":"^2.4.0","proxyquire":"^2.1.0","tsd":"^0.8.0","xo":"^0.24.0"},"xo":{"rules":{"import/no-unresolved":"off"}},"gitHead":"b01a5ccea4af0c9cc444dcef9cd2e776c9fe2d53","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@5.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"dd05ccdfcfe7dab626247ce2a58efe461922f4ca","size":4965,"noattachment":false,"key":"/hasha/-/hasha-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_5.1.0_1569140568742_0.3696372273130113"},"_hasShrinkwrap":false,"publish_time":1569140568889,"_cnpm_publish_time":1569140568889},"5.0.0":{"name":"hasha","version":"5.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.1.0","type-fest":"^0.3.0"},"devDependencies":{"@types/node":"^11.13.0","ava":"^1.4.1","proxyquire":"^2.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"c26d621b6299b8b60445f8393405872416b4c6f1","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fdc3785caea03df29535fc8adb512c3d3a709004","size":3720,"noattachment":false,"key":"/hasha/-/hasha-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_5.0.0_1554448904540_0.8240454159205137"},"_hasShrinkwrap":false,"publish_time":1554448904671,"_cnpm_publish_time":1554448904671},"4.0.1":{"name":"hasha","version":"4.0.1","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1"},"devDependencies":{"@types/node":"^11.10.5","ava":"^1.3.1","proxyquire":"^2.1.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"d6d569112d01938a26275e285886474db2aa9b6d","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@4.0.1","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1b0d97b5732127660f2e0b1371c2cc35962f17d0","size":3657,"noattachment":false,"key":"/hasha/-/hasha-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-4.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_4.0.1_1552476462238_0.2508379897893258"},"_hasShrinkwrap":false,"publish_time":1552476462345,"_cnpm_publish_time":1552476462345},"4.0.0":{"name":"hasha","version":"4.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1"},"devDependencies":{"@types/node":"^11.10.5","ava":"^1.3.1","proxyquire":"^2.1.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"c11e960b01a7d6f5e98b4bf0a81c347bbe3a56fd","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@4.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"42395b2f43e43721fa9a15fad09eb207cd67891b","size":3666,"noattachment":false,"key":"/hasha/-/hasha-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasha_4.0.0_1552365756945_0.3590712789431485"},"_hasShrinkwrap":false,"publish_time":1552365757112,"_cnpm_publish_time":1552365757112},"3.0.0":{"name":"hasha","version":"3.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1"},"devDependencies":{"ava":"*","proxyquire":"^1.7.2","xo":"*"},"gitHead":"92f09c8384553b40ab8fbde207056db66011a3ef","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@3.0.0","_shasum":"52a32fab8569d41ca69a61ff1a214f8eb7c8bd39","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"52a32fab8569d41ca69a61ff1a214f8eb7c8bd39","size":2976,"noattachment":false,"key":"/hasha/-/hasha-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/hasha-3.0.0.tgz_1494382030659_0.45051799225620925"},"directories":{},"publish_time":1494382033229,"_hasShrinkwrap":false,"_cnpm_publish_time":1494382033229},"2.2.0":{"name":"hasha","version":"2.2.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/hasha"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","proxyquire":"^1.7.2","xo":"*"},"gitHead":"5104d62d41122047a9da143fcd05e9397ff494a2","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha","_id":"hasha@2.2.0","_shasum":"78d7cbfc1e6d66303fe79837365984517b2f6ee1","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"78d7cbfc1e6d66303fe79837365984517b2f6ee1","size":3005,"noattachment":false,"key":"/hasha/-/hasha-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1450961817684,"_cnpm_publish_time":1450961817684,"_hasShrinkwrap":false},"2.1.0":{"name":"hasha","version":"2.1.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/hasha"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","proxyquire":"^1.7.2","xo":"*"},"gitHead":"0556c3fe4261d5d35e5e8a78fbd8625b72d225e9","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha","_id":"hasha@2.1.0","_shasum":"6eede981a5025a0e3ce4e316179eed1211ec9fdd","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6eede981a5025a0e3ce4e316179eed1211ec9fdd","size":2900,"noattachment":false,"key":"/hasha/-/hasha-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1450906644549,"_cnpm_publish_time":1450906644549,"_hasShrinkwrap":false},"2.0.2":{"name":"hasha","version":"2.0.2","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","proxyquire":"^1.7.2","xo":"*"},"gitHead":"107d0060ffd26c5741281b046396b90e87cbcf2a","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@2.0.2","_shasum":"85567e51782e1af00ba7f5428ff711775fa8ccaa","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"85567e51782e1af00ba7f5428ff711775fa8ccaa","size":2897,"noattachment":false,"key":"/hasha/-/hasha-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-2.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1442990746562,"_cnpm_publish_time":1442990746562,"_hasShrinkwrap":false},"2.0.1":{"name":"hasha","version":"2.0.1","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/hasha.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"98e8a42bb89d508799a13de7b62f99dc6513860b","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha#readme","_id":"hasha@2.0.1","_shasum":"454830ccaf486639f72f9518a417b4458b9898d0","_from":".","_npmVersion":"2.14.1","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"454830ccaf486639f72f9518a417b4458b9898d0","size":2880,"noattachment":false,"key":"/hasha/-/hasha-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441104293062,"_cnpm_publish_time":1441104293062,"_hasShrinkwrap":false},"2.0.0":{"name":"hasha","version":"2.0.0","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/hasha"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"4a603bbf66f68fa7d407692b4caac8d508979ff6","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha","_id":"hasha@2.0.0","_shasum":"ccfe7ce1f13c3b9aa8ed6e23f93d396b5d6bdf38","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ccfe7ce1f13c3b9aa8ed6e23f93d396b5d6bdf38","size":2879,"noattachment":false,"key":"/hasha/-/hasha-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441097692977,"_cnpm_publish_time":1441097692977,"_hasShrinkwrap":false},"1.0.1":{"name":"hasha","version":"1.0.1","description":"Hashing made simple. Get the hash of a buffer/string/stream/file.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/hasha"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"hasha":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js","cli.js"],"keywords":["cli-app","cli","hash","hashing","crypto","hex","base64","md5","sha1","sha256","sha512","sum","stream","file","fs","buffer","string","text","rev","revving","simple","easy"],"dependencies":{"is-stream":"^1.0.1","meow":"^3.1.0"},"devDependencies":{"ava":"0.0.4","is-stream":"^1.0.1"},"gitHead":"97160e0c7192af28673f46624a68e35b227e9379","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha","_id":"hasha@1.0.1","_shasum":"cd41618d0a642c76983b97ef277f6f8a9f19710f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd41618d0a642c76983b97ef277f6f8a9f19710f","size":3249,"noattachment":false,"key":"/hasha/-/hasha-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1434134729779,"_cnpm_publish_time":1434134729779,"_hasShrinkwrap":false},"1.0.0":{"name":"hasha","version":"1.0.0","description":"Get the hash of a buffer/string/stream/file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/hasha"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bin":{"hasha":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js","cli.js"],"keywords":["cli-app","cli","hash","crypto","hex","base64","md5","sha1","sha256","sha512","stream","file","fs","buffer","string"],"dependencies":{"is-stream":"^1.0.1","meow":"^3.1.0"},"devDependencies":{"ava":"0.0.4","is-stream":"^1.0.1"},"gitHead":"76ec22e37f6bce68849bac2b8cbd3d748e463ea3","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"homepage":"https://github.com/sindresorhus/hasha","_id":"hasha@1.0.0","_shasum":"35f16d97d4f0de64b099848f2a866cd0fdee80d6","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"35f16d97d4f0de64b099848f2a866cd0fdee80d6","size":3057,"noattachment":false,"key":"/hasha/-/hasha-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hasha/download/hasha-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432373546579,"_cnpm_publish_time":1432373546579,"_hasShrinkwrap":false}},"readme":"<h1 align=\"center\">\n\t<br>\n\t<br>\n\t<br>\n\t<img width=\"380\" src=\"media/logo.svg\" alt=\"hasha\">\n\t<br>\n\t<br>\n\t<br>\n\t<br>\n\t<br>\n</h1>\n\n> Hashing made simple. Get the hash of a buffer/string/stream/file.\n\nConvenience wrapper around the core [`crypto` Hash class](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm) with simpler API and better defaults.\n\n## Install\n\n```sh\nnpm install hasha\n```\n\n## Usage\n\n```js\nimport {hash} from 'hasha';\n\nawait hash('unicorn');\n//=> 'e233b19aabc7d5e53826fb734d1222f1f0444c3a3fc67ff4af370a66e7cadd2cb24009f1bc86f0bed12ca5fcb226145ad10fc5f650f6ef0959f8aadc5a594b27'\n```\n\n## API\n\nSee the Node.js [`crypto` docs](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options) for more about hashing.\n\n### hash(input, options?)\n\nThe operation is executed using `worker_threads`. A thread is lazily spawned on the first operation and lives until the end of the program execution. It's unrefed, so it won't keep the process alive.\n\nReturns a hash asynchronously.\n\n### hashSync(input, options?)\n\nReturns a hash.\n\n#### input\n\nType: `Uint8Array | string | Array<Uint8Array | string> | NodeJS.ReadableStream` *(`NodeJS.ReadableStream` is not available in `hashSync`)*\n\nThe value to hash.\n\nWhile strings are supported you should prefer buffers as they're faster to hash. Although if you already have a string you should not convert it to a buffer.\n\nPass an array instead of concatenating strings and/or buffers. The output is the same, but arrays do not incur the overhead of concatenation.\n\n#### options\n\nType: `object`\n\n##### encoding\n\nType: `string`\\\nDefault: `'hex'`\\\nValues: `'hex' | 'base64' | 'buffer' | 'latin1'`\n\nThe encoding of the returned hash.\n\n##### algorithm\n\nType: `string`\\\nDefault: `'sha512'`\\\nValues: `'md5' | 'sha1' | 'sha256' | 'sha512'` *([Platform dependent](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options))*\n\n*The `md5` algorithm is good for [file revving](https://github.com/sindresorhus/rev-hash), but you should never use `md5` or `sha1` for anything sensitive. [They're insecure.](https://security.googleblog.com/2014/09/gradually-sunsetting-sha-1.html)*\n\n##### signal\n\nType: `AbortSignal`\n\nAn [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the hashing operation.\n\n### hashFile(filePath, options?)\n\nThe operation is executed using `worker_threads`. A thread is lazily spawned on the first operation and lives until the end of the program execution. It's unrefed, so it won't keep the process alive.\n\nReturns a `Promise` for the calculated file hash.\n\n```js\nimport {hashFile} from 'hasha';\n\n// Get the MD5 hash of an image\nawait hashFile('unicorn.png', {algorithm: 'md5'});\n//=> '1abcb33beeb811dca15f0ac3e47b88d9'\n```\n\n### hashFileSync(filePath, options?)\n\nReturns the calculated file hash.\n\n```js\nimport {hashFileSync} from 'hasha';\n\n// Get the MD5 hash of an image\nhashFileSync('unicorn.png', {algorithm: 'md5'});\n//=> '1abcb33beeb811dca15f0ac3e47b88d9'\n```\n\n### hashingStream(options?)\n\nReturns a [hash transform stream](https://nodejs.org/api/crypto.html#crypto_class_hash).\n\n```js\nimport {hashingStream} from 'hasha';\n\n// Hash the process input and output the hash sum\nprocess.stdin.pipe(hashingStream()).pipe(process.stdout);\n```\n\n## Tip\n\nFor hashing multiple files, limit concurrency to `os.availableParallelism()`:\n\n```js\nimport {availableParallelism} from 'node:os';\nimport {hashFile} from 'hasha';\nimport pLimit from 'p-limit';\n\nconst limit = pLimit(availableParallelism());\n\nawait Promise.all(files.map(file => limit(() => hashFile(file))));\n```\n\n## Related\n\n- [hasha-cli](https://github.com/sindresorhus/hasha-cli) - CLI for this module\n- [crypto-hash](https://github.com/sindresorhus/crypto-hash) - Tiny hashing module that uses the native crypto API in Node.js and the browser\n- [hash-object](https://github.com/sindresorhus/hash-object) - Get the hash of an object\n- [md5-hex](https://github.com/sindresorhus/md5-hex) - Create a MD5 hash with hex encoding\n","_attachments":{},"homepage":"https://github.com/sindresorhus/hasha#readme","bugs":{"url":"https://github.com/sindresorhus/hasha/issues"},"license":"MIT"}