{"name":"uint8-util","version":"2.3.2","description":"Fastest possible buffer-like utilities for uint8.","main":"./dist/src/node.js","browser":"./dist/src/browser.js","chromeapp":"./dist/src/browser.js","type":"module","exports":{".":{"node":{"types":"./dist/src/browser.d.ts","import":"./dist/src/node.js"},"browser":{"types":"./dist/src/browser.d.ts","import":"./dist/src/browser.js"},"chromeapp":{"types":"./dist/src/browser.d.ts","import":"./dist/src/browser.js"},"default":{"types":"./dist/src/browser.d.ts","import":"./dist/src/browser.js"}}},"types":"./dist/src/browser.d.ts","repository":{"type":"git","url":"git+https://github.com/ThaUnknown/uint8-util.git"},"keywords":["uint8","buffer","sha1","crypto","hex","tohex","tostring"],"author":{"name":"ThaUnknown"},"license":"MIT","bugs":{"url":"https://github.com/ThaUnknown/uint8-util/issues"},"homepage":"https://github.com/ThaUnknown/uint8-util#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/plugin-syntax-import-assertions":"^7.20.0","@babel/preset-env":"^7.20.2","@types/node":"^26.1.1","airtap":"^4.0.4","airtap-manual":"^1.0.0","babelify":"^10.0.0","base64-arraybuffer":"^1.0.2","benchmark":"^2.1.4","eslint-config-standard-universal":"^1.0.10","vite":"^8.1.5","vite-plugin-node-polyfills":"^0.28.0"},"scripts":{"compile":"tsc -p tsconfig.base.json","typecheck":"tsc --noEmit -p tsconfig.base.json && tsc --noEmit -p tsconfig.test.json","bench-node-all":"node test/benchmark/index.ts","bench-node-save":"node test/benchmark/index.ts > results/node.txt","bench-node-one":"node benchmark/bin2hex.js","bench-browser-all":"airtap --preset local -- benchmark/index.js","bench-browser-one":"airtap --preset local -- benchmark/hex2arr.js","bench-vite":"vite --config vite.config.ts test/benchmark/browser","test":"node --experimental-test-coverage --test test/all.test.ts"},"_id":"uint8-util@2.3.2","_integrity":"sha512-u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==","_resolved":"D:\\TEMP_TMP\\482b3fab2c09350eb9a379fdf726385b\\uint8-util-2.3.2.tgz","_from":"file:uint8-util-2.3.2.tgz","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==","shasum":"e7c66de5ee8e13fb6e4dc09cb2b5eea2cfc4cef0","tarball":"http://registry-npm.ywwl.com/uint8-util/download/uint8-util-2.3.2.tgz","fileCount":15,"unpackedSize":84139,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCUqr104xzTe3NY106aCxtG/LFOIM/hTpLJXG3XvEdZQgIgFxkEJ7rb/gsXvkATkeodzlEIgJuMWwThiBxtE6a9CgI="}],"size":21014,"noattachment":false,"key":"/uint8-util/-/uint8-util-2.3.2.tgz"},"_npmUser":{"name":"thaunknown","email":"casistaken@gmail.com"},"directories":{},"maintainers":[{"name":"thaunknown","email":"casistaken@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/uint8-util_2.3.2_1784558240720_0.1946709111574063"},"_hasShrinkwrap":false,"readme":"# Uint8 Utilities\r\n\r\nThis libraries brings features from Node's `Buffer` to JS's Uint8Arrays and in some cases other Typed Arrays, in the fastest ways possible, often faster than Node's own `Buffer`'s methods.\r\n\r\n# Usage\r\n\r\n```js\r\nimport { arr2text, text2arr, arr2hex, hex2arr, arr2base, base2arr } from 'uint8-util'\r\n\r\nconst str = arr2text(new Uint8Array([1, 2, 3]))\r\n\r\nconst uint8 = text2arr('uflnpq')\r\n\r\nconst hexString = arr2hex(new Uint8Array([1, 2, 3]))\r\n\r\nconst uint8 = hex2arr('abc')\r\n\r\nconst base64String = arr2base(new Uint8Array([89, 87, 74, 106, 77, 84, 73]))\r\n\r\nconst uint8 = base2arr('YWJjMTI')\r\n\r\nimport { concat, equal, hash, randomBytes } from 'uint8-util'\r\n\r\nconst joined = concat([[1,2,3], new Uint8Array([1, 2, 3])])\r\n\r\nconst same = equal([1,2,3], [1,2,3])\r\n\r\nconst hash = await hash('mystring')\r\n\r\nconst hash = await hash(new Uint8Array([1, 2, 3]))\r\n\r\nconst rand = arr2hex(randomBytes(128))\r\n","publish_time":1784558240896,"_cnpm_publish_time":1784558240896,"dist-tags":{"latest":"2.3.2"}}