{"_id":"@axetroy/wasm-hasher","_rev":"6-674544693d2a98e9377f7e6a2a18ffb1","name":"@axetroy/wasm-hasher","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@axetroy/wasm-hasher","version":"0.1.0","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.0","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"1c6696ac55166e8f85564833dbe0a3f7fdd8d9f2","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.0.tgz","fileCount":7,"integrity":"sha512-ZuAJOMkkLLFYPKduJPciJTS5saSgByZl+efzi1U5YU6Rl7ShjWwBCrJxhcS5UI9xE1UseakwLKwWUSSETsU2Iw==","signatures":[{"sig":"MEUCIQDj5BDJ7z6KW60nWIeJglRK9AXTV7tAyTxS2Ze77fYKjgIgE7D0ydsiKxBDt0bckUOosWSJ/p/UiTykRMKmg4doLz4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124284},"types":"wasm_hasher.d.ts","module":"wasm_hasher.js","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"6.14.15","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"14.18.1","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.0_1683974343348_0.8342807631062161","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@axetroy/wasm-hasher","version":"0.1.1","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.1","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"221ce8c639b69dc81e828550e59c3804110beac9","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.1.tgz","fileCount":7,"integrity":"sha512-2Z3MC046lIDBD78tIfAyCfU9SjLECEw4lqfAqnUiXQKNeBjLmsQ/J760Bc9ZYlhU1++3TnT2RgHun6uBr9T28A==","signatures":[{"sig":"MEYCIQDuM98U38eJCh/r4CRMHXQCYN7QWjVZDAaN3vn6NKPR0QIhAKj3gewu0OPp3VBJG4U2RkDhaQextBIBBJhGAHR6JTjr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":129971},"types":"wasm_hasher.d.ts","module":"wasm_hasher.js","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"6.14.15","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"14.18.1","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.1_1683983448548_0.6390344556992094","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@axetroy/wasm-hasher","version":"0.1.2","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.2","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"d4a3b84483c30fedb30f83235092935dbd06a334","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.2.tgz","fileCount":7,"integrity":"sha512-CbJgiRgs964y3IQ+vOggZcPY+sqmKCCFmCOxcZ+ev16HydP5BwmLjcvZFQkfKH0KDJ7gKULsbmMNK4XnUOc8aw==","signatures":[{"sig":"MEYCIQD2ND7moS6EMnxFHPlD88Py9hHhP9AkDCEezS5LcrjzAQIhAPBkM1lSnMX4YtOy+2zpSuyHGrP5fcqaG+2cBdAJ3WrN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":246875},"types":"wasm_hasher.d.ts","module":"wasm_hasher.js","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"6.14.15","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"14.18.1","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.2_1683995952505_0.6323709172321648","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@axetroy/wasm-hasher","version":"0.1.3","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.3","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"1e5d0375dc82b08d683c5e0d47399ff905287f45","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.3.tgz","fileCount":7,"integrity":"sha512-FKt8p57EZIHFy5XfQVzn3dcX12j12CAzrZK32l7yg3FEbJk40tYr41aOAf1GFFqZZZLco7VWGQdhYKgBl1b/xw==","signatures":[{"sig":"MEYCIQD9TWQcpa/G0OGPCXA7JAnts2f6RIj+7xmwBst0hIEWXgIhAMVBLTIlKpxnESu9xhrARfDQ86hoBFXKmCuXuXGMcblY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":251139},"types":"wasm_hasher.d.ts","module":"wasm_hasher.js","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"6.14.15","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"14.18.1","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.3_1684055048500_0.8206088924101325","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@axetroy/wasm-hasher","version":"0.1.4","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.4","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"4091dbbc7b6d803580e6c31ecbdd9e0f27bc3bb4","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.4.tgz","fileCount":7,"integrity":"sha512-vDDZqn9VcRD8drYuUnikx+iTZvJGEljlg6CFuy8IHOiHgQ+PYu7B6P0piM6euJmwjXDfkcXTU12G97+kLmU72g==","signatures":[{"sig":"MEUCIEM3CPm5uMqto9b1EpCMzJa5IohXh19d2NmEMo4WLah0AiEA1W8r0eQYdJiNNHbYB6JUoUtMUBdvPufeUovw4RMOZhc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":264560},"main":"wasm_hasher.js","type":"module","types":"wasm_hasher.d.ts","gitHead":"9439a5b300c9e8882b74a8aa376fbcfca3b6afce","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"10.9.2","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"22.13.0","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.4_1739293730881_0.5718201865952832","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@axetroy/wasm-hasher","version":"0.1.5","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"license":"Anti-996","_id":"@axetroy/wasm-hasher@0.1.5","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"homepage":"https://github.com/axetroy/wasm-hasher#readme","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"dist":{"shasum":"a17759600af4e595170ad55c1866ebffb59040d3","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.5.tgz","fileCount":7,"integrity":"sha512-K6Zw7mWvpWQlvaO4LIdfjWB88d4qtNjNOWcbTC8Te3NBVNNuWBvC3iGEZtDTBGBFiCt5QI9Bsy2Pk8qVCVkOYw==","signatures":[{"sig":"MEUCIDZrk8sF/+IILf1Vd918I0VAEvshq8vu3WC7/F2wudVsAiEA1U5eUfy8XaOxPjf38vqLXbNBARsj5sctMkJfFes4GF4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":269766},"main":"wasm_hasher.js","type":"module","types":"wasm_hasher.d.ts","gitHead":"bee1a8c7eaaf6d32bf49489d4d5ae596085c2bb9","_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"repository":{"url":"git+https://github.com/axetroy/wasm-hasher.git","type":"git"},"_npmVersion":"10.9.2","description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","directories":{},"sideEffects":["./wasm_hasher.js","./snippets/*"],"_nodeVersion":"22.13.0","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/wasm-hasher_0.1.5_1739294460253_0.026206852078805687","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@axetroy/wasm-hasher","type":"module","collaborators":["Axetroy <axetroy.dev@gmail.com>"],"description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","version":"0.1.6","license":"Anti-996","repository":{"type":"git","url":"git+https://github.com/axetroy/wasm-hasher.git"},"main":"wasm_hasher.js","types":"wasm_hasher.d.ts","sideEffects":["./wasm_hasher.js","./snippets/*"],"keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"_id":"@axetroy/wasm-hasher@0.1.6","gitHead":"46ffd765110d33bbe6a9ae8c400c0770cdd5f30a","bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"homepage":"https://github.com/axetroy/wasm-hasher#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-AfCsGSMBKAjr/8m3dJcNHQpLEXFw0HH1fCZQGpnKils2qAXCzjYl2M8Cxu4mxol+s0CWthIhhVktZHoiGHhlZA==","shasum":"232ca22cc973b11b579348eb261efe53479067e0","tarball":"https://registry.npmjs.org/@axetroy/wasm-hasher/-/wasm-hasher-0.1.6.tgz","fileCount":7,"unpackedSize":268934,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4MaNzi/oOZ/XzfUGHUe0kkYTtXDlQTMyK9Oqwi7ARhgIhAJ2Y8ap10VzvlQbzlGIZ17PgyVIyMsTBp0c82+7tXMdA"}]},"_npmUser":{"name":"axetroy","email":"troy450409405@gmail.com"},"directories":{},"maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wasm-hasher_0.1.6_1739887267963_0.07599562400252524"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-13T10:39:03.290Z","modified":"2025-02-18T14:01:08.564Z","0.1.0":"2023-05-13T10:39:03.566Z","0.1.1":"2023-05-13T13:10:48.711Z","0.1.2":"2023-05-13T16:39:12.691Z","0.1.3":"2023-05-14T09:04:08.666Z","0.1.4":"2025-02-11T17:08:51.070Z","0.1.5":"2025-02-11T17:21:00.448Z","0.1.6":"2025-02-18T14:01:08.382Z"},"bugs":{"url":"https://github.com/axetroy/wasm-hasher/issues"},"license":"Anti-996","homepage":"https://github.com/axetroy/wasm-hasher#readme","keywords":["md5","sha","sha1","sha2","sha3","sha256","sha512","ripemd","tiger","wasm","webassembly"],"repository":{"type":"git","url":"git+https://github.com/axetroy/wasm-hasher.git"},"description":"computed data hash by webAssembly support md5,sha1,sha2,sha3,sm3,ripemd","maintainers":[{"name":"axetroy","email":"troy450409405@gmail.com"}],"readme":"<div align=\"center\">\n\n  <h1><code>computed data hash by webAssembly</code></h1>\n\n<strong>Support `md5`/`sha1`/`sha224`/`sha256`/`sha512`/`sm3`/`ripemd`/`tiger`/`whirlpool`/`blake`</strong>\n\n  <p>\n    <a href=\"https://github.com/axetroy/wasm-hasher/actions/workflows/rust.yml\"><img src=\"https://github.com/axetroy/wasm-hasher/actions/workflows/rust.yml/badge.svg\" alt=\"Build Status\" /></a>\n  </p>\n\n<sub>Built with 🦀🕸 and inspired by [github.com/fuyoo/wasm-hasher](https://github.com/fuyoo/wasm-hasher)\n\n</div>\n\nThe difference with [github.com/fuyoo/wasm-hasher](https://github.com/fuyoo/wasm-hasher)\n\n1. Hash process can be interrupted with `AbortSignal`\n2. The exposed function can specify the chunks size for each read. Larger chunks consume more CPU.\n3. `onProgress` callback is optional. Set to `null` to improve performance if you don't need it.\n4. separate packages, smaller wasm files\n\n## Usage\n\n```js\nimport * as hasher from \"@axetroy/wasm-hasher\";\n\nconst controller = new AbortController();\nconst file = new Blob([], { type: \"application/text\" });\n\nconst md5 = await hasher.md5(\n  controller.signal,\n  file,\n  1024 * 1024 * 10,\n  (progress) => {\n    console.log(\"hash progress\");\n  }\n);\n\nconsole.log(md5);\n```\n\n## 🚴 Installation\n\n```bash\nnpm install @axetroy/wasm-hasher\nnpm install @axetroy/wasm-hasher-md5\nnpm install @axetroy/wasm-hasher-sha1\nnpm install @axetroy/wasm-hasher-sha2\nnpm install @axetroy/wasm-hasher-sha3\nnpm install @axetroy/wasm-hasher-sm3\nnpm install @axetroy/wasm-hasher-ripemd\nnpm install @axetroy/wasm-hasher-tiger\nnpm install @axetroy/wasm-hasher-whirlpool\nnpm install @axetroy/wasm-hasher-blake\n```\n\n### Packages\n\n| Package                        | Version                                                                                                                                    |\n| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| @axetroy/wasm-hasher           | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher)                     |\n| @axetroy/wasm-hasher-md5       | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-md5.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-md5)             |\n| @axetroy/wasm-hasher-sha1      | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha1.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha1)           |\n| @axetroy/wasm-hasher-sha2      | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha2.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha2)           |\n| @axetroy/wasm-hasher-sha3      | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha3.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sha3)           |\n| @axetroy/wasm-hasher-sm3       | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sm3.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-sm3)             |\n| @axetroy/wasm-hasher-ripemd    | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-ripemd.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-ripemd)       |\n| @axetroy/wasm-hasher-tiger     | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-tiger.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-tiger)         |\n| @axetroy/wasm-hasher-whirlpool | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-whirlpool.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-whirlpool) |\n| @axetroy/wasm-hasher-blake     | [![npm version](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-blake.svg)](https://badge.fury.io/js/@axetroy%2Fwasm-hasher-blake)         |\n\n### 🛠️ Build from source\n\nMake sure you have install [rust^1.69](https://www.rust-lang.org/) and [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)\n\n```bash\nmake\n```\n\n## License\n\n[Anti-996](License)\n","readmeFilename":"README.md"}