{"_id":"@push.rocks/smarthash","_rev":"11-82d0411f31abcd81c8ad3757610c7cb1","name":"@push.rocks/smarthash","dist-tags":{"latest":"3.3.0"},"versions":{"3.0.2":{"name":"@push.rocks/smarthash","version":"3.0.2","keywords":["pushrocks","typescript","hash","node","sha256","stream","filehash"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.0.2","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"dist":{"shasum":"a0e0a1b82abc341446278fe2f363b028c07aae13","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.0.2.tgz","fileCount":22,"integrity":"sha512-EB4lwQtBUmFaNrOXhQeFvItsuGq7NGbo3LLiPGHwEgSyf6NPSkxwleC+KDV68ggvBTGuhC4Lk6Z2qF11s8Dd0g==","signatures":[{"sig":"MEUCIE4Jfr6NZ9IXAT4ADX//faLSOfWS1mX5uM8oJVXDtqNUAiEA7dkdrkTILHo5Ku7yhNC/i7WU5qW/3Xl7r3EbbR/KOhA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19171},"main":"dist_ts/index.js","type":"module","private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild --web)","buildDocs":"tsdoc"},"typings":"dist_ts/index.d.ts","_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_npmVersion":"9.5.0","description":"simplified access to node hash functions","directories":{},"_nodeVersion":"18.14.2","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.36","@pushrocks/smartjson":"^5.0.1","@pushrocks/smartpromise":"^3.1.7"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^18.0.0","@gitzone/tsrun":"^1.2.37","@gitzone/tstest":"^1.0.71","@gitzone/tsbuild":"^2.1.63","@pushrocks/tapbundle":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.0.2_1689123329288_0.27107527019854705","host":"s3://npm-registry-packages"}},"3.0.4":{"name":"@push.rocks/smarthash","version":"3.0.4","keywords":["pushrocks","typescript","hash","node","sha256","stream","filehash"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.0.4","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"dist":{"shasum":"917f118de27e2b7468b75a1269c5fabfc5d1d0de","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.0.4.tgz","fileCount":22,"integrity":"sha512-HJ/fSx41jm0CvSaqMLa6b2nuNK5rHAqAeAq3dAB7Sq9BCPm2M0J5ZVDTzEAH8pS91XYniUiwuE0jwPERNn9hmw==","signatures":[{"sig":"MEQCIHArI5ka9RpEy2CTc0u9WcsZG39iGVOTkna5hLRW8foaAiBRodTROWwQW7j0JteCQ+XaIVdAJwWL0Ou8o1aPam0IYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18899},"main":"dist_ts/index.js","type":"module","gitHead":"4fa410a3bd16fde36f12bbc5477dad9cc87933fd","private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild --web --allowimplicitany)","buildDocs":"tsdoc"},"typings":"dist_ts/index.d.ts","_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_npmVersion":"10.1.0","description":"simplified access to node hash functions","directories":{},"_nodeVersion":"18.18.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^1.0.81","@git.zone/tsbuild":"^2.1.70","@push.rocks/tapbundle":"^5.0.15"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.0.4_1695384041176_0.718898032673762","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@push.rocks/smarthash","version":"3.1.0","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.1.0","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"a4fddc333564b4b0d042e0590f6f135271489ca6","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.1.0.tgz","fileCount":36,"integrity":"sha512-h+RNCj3+JstmU7TaSrbJTcci1lVJRlx0AuwPEtDShZMCO1mwEteVWL+IZX4+Dbv1dlJbhYwpk5Z3Niu7zV//QQ==","signatures":[{"sig":"MEYCIQDkNsXANwcTJco35yIdfZNUF3p1EB7LmzHfz4kkIE5m6QIhALoQRUUtWDgPvbGyBqYkU/Xf6RkPAzmKgAieL5HQRcGf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52860},"main":"dist_ts/index.js","type":"module","_from":"file:push.rocks-smarthash-3.1.0.tgz","private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"typings":"dist_ts/index.d.ts","_npmUser":{"name":"lossless","actor":{"name":"lossless","type":"user","email":"hello@lossless.com"},"email":"hello@lossless.com"},"_resolved":"/tmp/532cdb3db949c9f0711e08cde944e9cf/push.rocks-smarthash-3.1.0.tgz","_integrity":"sha512-h+RNCj3+JstmU7TaSrbJTcci1lVJRlx0AuwPEtDShZMCO1mwEteVWL+IZX4+Dbv1dlJbhYwpk5Z3Niu7zV//QQ==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.5","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^1.0.81","@git.zone/tsbuild":"^2.1.70"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.1.0_1750374227965_0.0863642400523672","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"name":"@push.rocks/smarthash","version":"3.2.0","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.0","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"3be216de0ec6b38e2667a53267e7c00d5a1c0172","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.0.tgz","fileCount":36,"integrity":"sha512-+dgvrtj9hwE/Xxqy9NLEDw8kmbn4TybFhwHsU6C0baVt7oTy97fj39PO0ooyNCKVfNrfLGhq5iSUTAJiGWnMlQ==","signatures":[{"sig":"MEUCIQDCQiD0/xLfTYMxc6g8WZ1ui4tVQ0TD9GBEHULbelHmIgIgGe1ryKsKe2UI3NGho7eGFLiNFlyRaets8A+st3ytuSQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52884},"type":"module","_from":"file:push.rocks-smarthash-3.2.0.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","actor":{"name":"lossless","type":"user","email":"hello@lossless.com"},"email":"hello@lossless.com"},"_resolved":"/tmp/67507b763463f779ebfca742a6ec8892/push.rocks-smarthash-3.2.0.tgz","_integrity":"sha512-+dgvrtj9hwE/Xxqy9NLEDw8kmbn4TybFhwHsU6C0baVt7oTy97fj39PO0ooyNCKVfNrfLGhq5iSUTAJiGWnMlQ==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.5","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^1.0.81","@git.zone/tsbuild":"^2.1.70"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.0_1750376632921_0.010127184029959935","host":"s3://npm-registry-packages-npm-production"}},"3.2.1":{"name":"@push.rocks/smarthash","version":"3.2.1","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.1","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"5230318519ed80d577aadedf09dfb021c076ab8e","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.1.tgz","fileCount":36,"integrity":"sha512-p5g2KLEkD6UhWhKTyHkW0C2qHdskCyyUFNoPgyGHyAL22jIq8yy8OtNIcGjJ+4zLQoelzBNUe/27yIutR/nmtQ==","signatures":[{"sig":"MEYCIQCJ1SxcglygfxyQN3iQYMbI43MaHRij1JsERL76NlS/qAIhANITepAKPPuarjw6j39LymfZRmyP8VDr/N7zrrR5jbS5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54019},"type":"module","_from":"file:push.rocks-smarthash-3.2.1.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_resolved":"/tmp/773890f2c84d6f61c1c645ce0bc145f9/push.rocks-smarthash-3.2.1.tgz","_integrity":"sha512-p5g2KLEkD6UhWhKTyHkW0C2qHdskCyyUFNoPgyGHyAL22jIq8yy8OtNIcGjJ+4zLQoelzBNUe/27yIutR/nmtQ==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.5","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^1.0.81","@git.zone/tsbuild":"^2.1.70"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.1_1754255890098_0.9845595441014792","host":"s3://npm-registry-packages-npm-production"}},"3.2.2":{"name":"@push.rocks/smarthash","version":"3.2.2","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.2","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"b14951b1d69e0bfe29361d3231d40c13da9b5089","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.2.tgz","fileCount":36,"integrity":"sha512-5GCivrtTOueE4eb01Kr/b1ciF1vX6J7B/9sjRV7gSbCfbJJaiDhDILAoteRvgPeZJSqTlScXMOuEJpjEFAXqMw==","signatures":[{"sig":"MEUCIAO6Sly9Y61b/KBYa/7QBoNUfLMxcj4GsVGE6eqQMqSQAiEA2iN2IvojJURxnfvGxT6XqXuUr0jYVxZAqS/HU2ucg/A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53865},"type":"module","_from":"file:push.rocks-smarthash-3.2.2.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_resolved":"/tmp/2bbcc8a1d8e5b4084d9061f0e2482bec/push.rocks-smarthash-3.2.2.tgz","_integrity":"sha512-5GCivrtTOueE4eb01Kr/b1ciF1vX6J7B/9sjRV7gSbCfbJJaiDhDILAoteRvgPeZJSqTlScXMOuEJpjEFAXqMw==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.5","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^1.0.81","@git.zone/tsbuild":"^2.1.70"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.2_1754256022510_0.29483757623723217","host":"s3://npm-registry-packages-npm-production"}},"3.2.3":{"name":"@push.rocks/smarthash","version":"3.2.3","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.3","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"32d91e0c398f256c2f61019a13d8329026a972b8","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.3.tgz","fileCount":36,"integrity":"sha512-fBPQCGYtOlfLORm9tI3MyoJVT8bixs3MNTAfDDGBw91UKfOVOrPk5jBU+PwVnqZl7IE5mc9b+4wqAJn3giqEpw==","signatures":[{"sig":"MEYCIQDEp5djJRPwW7wT5+1PPsMQiPy8gLcDLvffkH/FeTHUOQIhAPOTaop93g+c9IJvRn/r5M9HfHlVeANaw1uIo3O01QvD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53865},"type":"module","_from":"file:push.rocks-smarthash-3.2.3.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_resolved":"/tmp/e7d722157a1c20653ec4d5e0dea3a7db/push.rocks-smarthash-3.2.3.tgz","_integrity":"sha512-fBPQCGYtOlfLORm9tI3MyoJVT8bixs3MNTAfDDGBw91UKfOVOrPk5jBU+PwVnqZl7IE5mc9b+4wqAJn3giqEpw==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.13","@push.rocks/smartjson":"^5.0.10","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^2.3.2","@git.zone/tsbuild":"^2.1.70"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.3_1754256109350_0.48625377913989665","host":"s3://npm-registry-packages-npm-production"}},"3.2.5":{"name":"@push.rocks/smarthash","version":"3.2.5","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.5","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"c2266119eef812a09b262749e84c5325b72f20cf","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.5.tgz","fileCount":36,"integrity":"sha512-sJr6CoArTBxHvBVyBJHEJsfoYIQklrtOlK0mb1YdjVyiITlRBOhbi1AqAIpou90Ot4poLZwpicHteLSnST4xqQ==","signatures":[{"sig":"MEUCIQCCcuKpkaYfa8XZZ7sYzHyUJS/Y5BbqCZfG4w26GvkBVgIgbu4KPpT1rhmGuIO3CH7Jv9lcPRSBpcze2wly0xNJuOg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54933},"type":"module","_from":"file:push.rocks-smarthash-3.2.5.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_resolved":"/tmp/3d7e2368163951f7d9c18c42fb70dea9/push.rocks-smarthash-3.2.5.tgz","_integrity":"sha512-sJr6CoArTBxHvBVyBJHEJsfoYIQklrtOlK0mb1YdjVyiITlRBOhbi1AqAIpou90Ot4poLZwpicHteLSnST4xqQ==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.13","@push.rocks/smartjson":"^5.2.0","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^2.3.8","@git.zone/tsbuild":"^2.6.8"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.5_1757713886976_0.7925925752638896","host":"s3://npm-registry-packages-npm-production"}},"3.2.6":{"name":"@push.rocks/smarthash","version":"3.2.6","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Lossless GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.6","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","dist":{"shasum":"113ec415c44fa0d810c5c719ecc36950b5492c0e","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.6.tgz","fileCount":36,"integrity":"sha512-Mq/WNX0Tjjes3X1gHd/ZBwOOKSrAG/Z3Xoc0OcCm3P20WKpniihkMpsnlE7wGjvpHLi/ZRe/XkB3KC3d5r9X4g==","signatures":[{"sig":"MEUCIQC5JJF2g5Bl7Ps0ZqR0DYZRPk2iS0+N3Da8NBR+mUMEgQIgfK9g3KBVqxyb6NTu7Hvx63gFgeJoDSJ4TkBTqJyMRhU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54933},"type":"module","_from":"file:push.rocks-smarthash-3.2.6.tgz","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"private":false,"scripts":{"test":"(tstest test/ --web)","build":"(tsbuild tsfolders --allowimplicitany)","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"_resolved":"/tmp/f999f92d0c60e82b5164f825fae4ff0e/push.rocks-smarthash-3.2.6.tgz","_integrity":"sha512-Mq/WNX0Tjjes3X1gHd/ZBwOOKSrAG/Z3Xoc0OcCm3P20WKpniihkMpsnlE7wGjvpHLi/ZRe/XkB3KC3d5r9X4g==","repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.3.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"23.8.0","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.39","@push.rocks/smartenv":"^5.0.13","@push.rocks/smartjson":"^5.2.0","@push.rocks/smartpromise":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.6.3","@git.zone/tsrun":"^1.2.46","@git.zone/tstest":"^2.3.8","@git.zone/tsbuild":"^2.6.8"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.6_1757713952490_0.11461957921186605","host":"s3://npm-registry-packages-npm-production"}},"3.2.7":{"name":"@push.rocks/smarthash","version":"3.2.7","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":{"name":"Task Venture Capital GmbH"},"license":"MIT","_id":"@push.rocks/smarthash@3.2.7","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"homepage":"https://code.foss.global/push.rocks/smarthash","bugs":{"url":"https://code.foss.global/push.rocks/smarthash/issues"},"dist":{"shasum":"2b5a0f4fa28f11bb3f2c381d4ac5edf16443372b","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.2.7.tgz","fileCount":36,"integrity":"sha512-y6iyu9l8Hslsa8W4e8UktX5d0yFZqipNgxxIik6NT0yHUM1zagx2cjemUtdV49uq1u+086Wr7nvrzLROWDzReA==","signatures":[{"sig":"MEUCIQDVGNTnBQg31M0EmPKjN1iuesiu+vh+BgWHhIZfHAu1FQIgZN2feLGHUxorCNJRwPbBYRRhHnXOybYaJ6JHUMpl/CU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54904},"type":"module","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"gitHead":"e23c6508dec79f2ca0046e32dbd379852a589d72","private":false,"scripts":{"test":"(tstest test/ --web)","build":"tsbuild tsfolders","buildDocs":"tsdoc"},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"repository":{"url":"https://code.foss.global/push.rocks/smarthash.git","type":"git"},"_npmVersion":"11.7.0","description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","directories":{},"_nodeVersion":"25.2.1","browserslist":["last 1 chrome versions"],"dependencies":{"through2":"^4.0.2","@types/through2":"^2.0.41","@push.rocks/smartenv":"^6.0.0","@push.rocks/smartjson":"^6.0.1","@push.rocks/smartpromise":"^4.2.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.28.2","devDependencies":{"@types/node":"^25.6.0","@git.zone/tsrun":"^2.0.2","@git.zone/tstest":"^3.6.3","@git.zone/tsbuild":"^4.4.0"},"_npmOperationalInternal":{"tmp":"tmp/smarthash_3.2.7_1777533962961_0.1703002235148965","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"@push.rocks/smarthash","version":"3.3.0","private":false,"description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","exports":{".":"./dist_ts/index.js","./web":"./dist_ts_web/index.js"},"keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"author":"Task Venture Capital GmbH","license":"MIT","devDependencies":{"@git.zone/tsbuild":"^4.4.2","@git.zone/tsbundle":"2.10.0","@git.zone/tsrun":"^2.0.6","@git.zone/tstest":"3.6.3","@types/node":"26.1.1"},"dependencies":{"@push.rocks/smartenv":"^6.0.0","@push.rocks/smartjson":"^6.0.1"},"browserslist":["last 1 chrome versions"],"type":"module","homepage":"https://code.foss.global/push.rocks/smarthash","repository":{"type":"git","url":"https://code.foss.global/push.rocks/smarthash.git"},"bugs":{"url":"https://code.foss.global/push.rocks/smarthash/issues"},"scripts":{"test":"(tstest test/ --web)","build":"tsbuild tsfolders","buildDocs":"tsdoc"},"_nodeVersion":"25.2.1","_id":"@push.rocks/smarthash@3.3.0","dist":{"integrity":"sha512-j0jOKhimza0E0IhRftyzpNlvEL9VfzqkjiWowPqRWQ5mbPmyj5ASw6PDkr7MdpF1art78b1I5YiDCtZGG2cS1w==","shasum":"80c536dcc5897d3b949aa83244905ae2ecc80899","tarball":"https://registry.npmjs.org/@push.rocks/smarthash/-/smarthash-3.3.0.tgz","fileCount":39,"unpackedSize":80249,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEOr91RcjcSdD9G8J5QgcAUp98HkhxH19OA4nw5B06gLAiEAvPBcPCBLiPwNMMUy8YSWKNS38gBUi9Cczwt2I+dWWgs="}]},"_npmUser":{"name":"lossless","email":"hello@lossless.com"},"directories":{},"maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/smarthash_3.3.0_1785511522126_0.3000015984175748"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-12T00:55:29.160Z","modified":"2026-07-31T15:25:22.447Z","3.0.2":"2023-07-12T00:55:29.465Z","3.0.4":"2023-09-22T12:00:41.357Z","3.1.0":"2025-06-19T23:03:48.165Z","3.2.0":"2025-06-19T23:43:53.129Z","3.2.1":"2025-08-03T21:18:10.264Z","3.2.2":"2025-08-03T21:20:22.676Z","3.2.3":"2025-08-03T21:21:49.546Z","3.2.5":"2025-09-12T21:51:27.252Z","3.2.6":"2025-09-12T21:52:32.702Z","3.2.7":"2026-04-30T07:26:03.078Z","3.3.0":"2026-07-31T15:25:22.281Z"},"bugs":{"url":"https://code.foss.global/push.rocks/smarthash/issues"},"author":"Task Venture Capital GmbH","license":"MIT","homepage":"https://code.foss.global/push.rocks/smarthash","keywords":["crypto","hashing","SHA256","MD5","security","node.js","browser","cross-environment","web crypto","stream hashing","file hashing","synchronous hashing","asynchronous hashing","data integrity","typescript"],"repository":{"type":"git","url":"https://code.foss.global/push.rocks/smarthash.git"},"description":"Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.","maintainers":[{"name":"lossless","email":"hello@lossless.com"}],"readme":"# 🔐 @push.rocks/smarthash\n\n> **Cross-environment hashing made simple** 🚀  \n> SHA-256 hashing for Node.js and browsers, with Node-only file and legacy MD5 helpers.\n\n## Issue Reporting and Security\n\nFor reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.\n\n[![npm version](https://img.shields.io/npm/v/@push.rocks/smarthash.svg)](https://www.npmjs.com/package/@push.rocks/smarthash)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)\n[![Cross Platform](https://img.shields.io/badge/Platform-Node.js%20%7C%20Browser-brightgreen.svg)](#)\n\n## ✨ Why SmartHash?\n\n- 🌐 **Universal SHA-256**: Works in Node.js and browsers without polyfills\n- ⚡ **Smart Fallbacks**: Uses the local implementation when Web Crypto is unavailable\n- 🔧 **TypeScript First**: Full type safety and IntelliSense support\n- 📦 **Dual Entry Points**: Optimized builds for both environments\n- 🎯 **Simple API**: Consistent interface across all platforms\n\n## 🚀 Quick Start\n\n```bash\npnpm install @push.rocks/smarthash\n```\n\n## 📖 API Reference\n\n### 🔤 String Hashing\n\n```typescript\nimport { sha256FromString, sha256FromStringSync } from '@push.rocks/smarthash';\n\n// Async (works everywhere)\nconst hash = await sha256FromString('Hello, world!');\nconsole.log(hash); // 📄 64-character hex string\n\n// Sync (Node.js and browsers)\nconst hashSync = sha256FromStringSync('Hello, world!');\nconsole.log(hashSync); // ⚡ Instant result\n```\n\nBrowser code imports the same functions from `@push.rocks/smarthash/web`.\n\n### 🗂️ File & Stream Hashing\n\n```typescript\nimport { sha256FromFile, sha256FromStream } from '@push.rocks/smarthash';\nimport fs from 'fs';\n\n// Hash files directly\nconst fileHash = await sha256FromFile('./myfile.txt');\nconsole.log(fileHash); // 📁 File's SHA256 hash\n\n// Hash streams (perfect for large files)\nconst stream = fs.createReadStream('./largefile.zip');\nconst streamHash = await sha256FromStream(stream);\nconsole.log(streamHash); // 🌊 Stream's SHA256 hash\n```\n\n`sha256FromFile()` is Node-only. `sha256FromStream()` accepts Node readable\nstreams in the main entrypoint and WHATWG `ReadableStream<Uint8Array>` objects\nin both entrypoints.\n\n### 🧱 Buffer Hashing\n\n```typescript\nimport { sha256FromBuffer } from '@push.rocks/smarthash';\n\n// Works with both Buffer (Node.js) and Uint8Array (Browser)\nconst encoder = new TextEncoder();\nconst buffer = encoder.encode('Hello, world!');\nconst bufferHash = await sha256FromBuffer(buffer);\nconsole.log(bufferHash); // 🔢 Buffer's SHA256 hash\n```\n\n### Incremental Hashing\n\n`createSha256Hasher()` is available from both entrypoints and accepts\nincremental updates without buffering the complete payload.\n\n```typescript\nimport { createSha256Hasher } from '@push.rocks/smarthash';\n\nconst hasher = createSha256Hasher();\nhasher.update(new Uint8Array([0xca, 0xfe]));\nhasher.update(new Uint8Array([0xba, 0xbe]));\nconst digest = hasher.digest();\n```\n\n`update()` accepts `ArrayBuffer` and `Uint8Array` values and returns the hasher\nfor chaining. `digest()` returns lowercase hexadecimal and finalizes the\ninstance. Further `update()` or `digest()` calls throw.\n\nBrowser byte streams can be hashed directly:\n\n```typescript\nimport { sha256FromStream } from '@push.rocks/smarthash/web';\n\nconst response = await fetch('/artifact');\nconst digest = await sha256FromStream(response.body!);\n```\n\n### 🎯 Object Hashing\n\n```typescript\nimport { sha265FromObject } from '@push.rocks/smarthash';\n\n// Consistent hashing for JavaScript objects\nconst myObject = { \n  userId: 12345, \n  role: 'admin',\n  timestamp: Date.now()\n};\n\nconst objectHash = await sha265FromObject(myObject);\nconsole.log(objectHash); // 🎯 Deterministic object hash\n```\n\n> **🔥 Pro Tip**: Object property order doesn't matter! `{a: 1, b: 2}` and `{b: 2, a: 1}` produce the same hash.\n\n### 🛡️ MD5 Hashing (Node.js Only)\n\n```typescript\nimport { md5FromString } from '@push.rocks/smarthash';\n\n// Legacy MD5 support (use SHA256 for new projects!)\nconst md5Hash = await md5FromString('Hello, world!');\nconsole.log(md5Hash); // 🔐 32-character MD5 hash\n```\n\n## 🌍 Environment Compatibility\n\nThe Browser column refers to the `@push.rocks/smarthash/web` entrypoint.\n\n| Function | Node.js | Browser | Notes |\n|----------|---------|---------|-------|\n| `sha256FromString` | ✅ | ✅ | Universal support |\n| `sha256FromStringSync` | ✅ | ✅ | Local incremental implementation in browsers |\n| `sha256FromBuffer` | ✅ | ✅ | Handles Buffer/Uint8Array |\n| `sha256FromFile` | ✅ | ❌ | File system access required |\n| `sha256FromStream` | ✅ | ✅ | Node streams and WHATWG byte streams |\n| `createSha256Hasher` | ✅ | ✅ | Incremental, bounded-memory SHA-256 |\n| `sha265FromObject` | ✅ | ✅ | Existing typo-preserving API; uses JSON serialization |\n| `md5FromString` | ✅ | ❌ | Not supported by Web Crypto API |\n\n## 🔧 Advanced Usage\n\n### Error Handling\n\n```typescript\nimport { sha256FromString } from '@push.rocks/smarthash';\n\ntry {\n  const hash = await sha256FromString('sensitive data');\n  console.log(`✅ Hash computed: ${hash}`);\n} catch (error) {\n  console.error('❌ Hashing failed:', error);\n}\n```\n\n### Browser-Specific Features\n\nIn browsers, SmartHash automatically:\n- 🔒 Uses Web Crypto API when `crypto.subtle` is available\n- 🔄 Falls back to the local implementation when `crypto.subtle` is unavailable\n- 🌊 Hashes WHATWG byte streams incrementally\n\n### Import Strategies\n\n```typescript\n// Main entry point (Node.js optimized)\nimport { sha256FromString } from '@push.rocks/smarthash';\n\n// Browser-compatible entry point\nimport { sha256FromString } from '@push.rocks/smarthash/web';\n```\n\n## 🛠️ Development\n\n```bash\n# Run tests (both Node.js and browser)\npnpm test\n\n# Build the project\npnpm build\n\n# Generate documentation\npnpm buildDocs\n```\n\n## 🔐 Security Notes\n\n- ✅ **SHA256**: Suitable for cryptographic digests and data-integrity checks\n- ⚠️ **MD5**: Legacy support only, not recommended for security-critical applications\n- 🌍 **Cross-Environment**: Produces identical hashes across Node.js and browsers\n- 🔒 **Web Crypto**: Uses native browser APIs when available\n\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH  \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n","readmeFilename":""}