{"name":"uint8-util","version":"2.0.0","keywords":["uint8","buffer","sha1","crypto","hex","tohex","tostring"],"author":{"name":"ThaUnknown"},"license":"MIT","_id":"uint8-util@2.0.0","maintainers":[{"name":"thaunknown","email":"casistaken@gmail.com"}],"homepage":"https://github.com/ThaUnknown/uint8-util#readme","bugs":{"url":"https://github.com/ThaUnknown/uint8-util/issues"},"dist":{"shasum":"e5ab6ad2a72210c325473ca656b6661c3abaa387","tarball":"http://registry-npm.ywwl.com/uint8-util/download/uint8-util-2.0.0.tgz","fileCount":9,"integrity":"sha512-AzRz6mNZ7VkiBTjz+44jJPdxTFdKmPvA10dnc2/lj6UxIglmvRM7iP9gm6bMZArCaqechnUFhHnP9jqY07mMrA==","signatures":[{"sig":"MEUCIQCwTP9k6P+USVLPT8h5n8804Ovim2zyXaGxibZ4/702ewIgBbKv3AuseiheWpQ3opDszxR+/aM+WzACShJpO9d6lnI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5497894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkUsIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTKw//bEoF+hVokgGbCnpP6/ySv/IKsAWHvO+mVn+VjP+w/eIO32dK\r\nBrFnBShh7goIzc5Hi1jAnQzgD1kfnxcvjWj+B9QigicDBlfkUsaGWuVuvRjx\r\n41mMdhapEqV5aKRRAajaicv3kMFH/+1gsGbqgvn3a+3j4aUCWxnt9efBDZbp\r\nhjRS2UGM03uu9SpTS0Tgnw7XPoc0yhDShDtl6G5xgDAK6dFnL8vxVoJlry2J\r\nI1Sd4jQJDq9QsNgunmmFV4tHjOIih1I+DfoiUfWHrsWEN0ReMUVyMMQc1FgI\r\nHnphZIIpaX1QILyA1AMuEQXeHf99CkWbcsoVQ14VQA/rxVeXpCthe+2E5Ma6\r\n7JdUwWtIB+kBartc9SJmCKl3vIRzRb4pYm3gE16BY56mwOpH+m1+Wy+GPYvQ\r\n2JQV78MWv/15NwmwSlQBhWnJ7ZjaEyUfd9LkK35ahWeQWS+mq5xH9Re1peO1\r\nG4p0FWUXDgXJZNmIpPSHmoTS2b0WQssVjSeGLRjavuzSWaVzOH3OnRNAgmgE\r\ngzfiJJIgBBaj1ih10JVm3GTnIDHN8Sx/azwmlF/vF668Iy9eeNyd6ahiiCM0\r\n5BOqjqonCVMFcgrrgtIbeULbpooJpOEdbJqtRDNPONdBppnhv7K1XUGris3/\r\nwRFmdhq8Dr+31U5kd/MJlNlC5ilQoS6lXIU=\r\n=PX6T\r\n-----END PGP SIGNATURE-----\r\n","size":2510702,"noattachment":false,"key":"/uint8-util/-/uint8-util-2.0.0.tgz"},"main":"index.js","type":"module","_from":"file:uint8-util-2.0.0.tgz","browser":"browser.js","exports":{"node":"./_node.js","default":"./browser.js"},"scripts":{"bench-node-2arr":"node benchmark/text2arr.js","bench-node-2text":"node benchmark/arr2text.js","bench-browser-2arr":"airtap --preset local -- benchmark/text2arr.js","bench-browser-2text":"airtap --preset local -- benchmark/arr2text.js"},"_npmUser":{"name":"thaunknown","email":"casistaken@gmail.com"},"_resolved":"D:\\TEMP_TMP\\bcdf0cb0188eaf09e82f6483b5b68c6e\\uint8-util-2.0.0.tgz","_integrity":"sha512-AzRz6mNZ7VkiBTjz+44jJPdxTFdKmPvA10dnc2/lj6UxIglmvRM7iP9gm6bMZArCaqechnUFhHnP9jqY07mMrA==","repository":{"url":"git+https://github.com/ThaUnknown/uint8-util.git","type":"git"},"_npmVersion":"8.18.0","description":"Fastest possible buffer-like utilities for uint8.","directories":{},"_nodeVersion":"18.8.0","dependencies":{"@babel/plugin-syntax-import-assertions":"^7.20.0"},"_hasShrinkwrap":false,"devDependencies":{"airtap":"^4.0.4","babelify":"^10.0.0","benchmark":"^2.1.4","@babel/core":"^7.20.5","airtap-manual":"^1.0.0","@babel/preset-env":"^7.20.2"},"_npmOperationalInternal":{"tmp":"tmp/uint8-util_2.0.0_1670466311731_0.9075945675204673","host":"s3://npm-registry-packages"},"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":1670466312016,"_cnpm_publish_time":1670466312016,"dist-tags":{"latest":"2.3.2"}}