{"name":"uint8-varint","version":"1.0.3","description":"Read/write varints from Uint8Arrays and Uint8ArrayLists","license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/uint8-varint#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/uint8-varint.git"},"bugs":{"url":"https://github.com/achingbrain/uint8-varint/issues"},"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./src/index.d.ts","import":"./dist/src/index.js"},"./big":{"types":"./src/big.d.ts","import":"./dist/src/big.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check","build":"aegir build","test":"aegir test","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:electron-main":"aegir test -t electron-main","release":"aegir release"},"dependencies":{"byte-access":"^1.0.0","longbits":"^1.1.0","uint8arraylist":"^2.0.0","uint8arrays":"^3.1.0"},"devDependencies":{"@types/varint":"^6.0.0","aegir":"^37.4.6","benchmark":"^2.1.4","varint":"^6.0.0"},"gitHead":"7bfa55b7257807f267bc34e7f112fff0fd48a8b7","_id":"uint8-varint@1.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-ESs/P/AYPy2wWZCT2V6Tg7RPqA6jzlhJbdsNPFvbDeIrDxj12dwTcm0rD9yFlnmgEf6vRBCZrP3d0SiRTcPwSQ==","shasum":"9877e77eb38eee5b47fd8444ed5a38409f879dd6","tarball":"http://registry-npm.ywwl.com/uint8-varint/download/uint8-varint-1.0.3.tgz","fileCount":13,"unpackedSize":23655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLsQa7fh7O+WAE02T83u8JujyxEuzT8xO5odVnqnYgxgIgA5em0Q4VRC9n24cu4Yhfic9dZ+xe0cI+9ajVTD9QE5A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7M/JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8PQ/+NjXNLXFDtOHHLUvPKFQxi7ucygnVRN2U+lkj/HyGkGNNdNgq\r\n83GExZkJS4n27I8YRR2vCboNmy2uq2erNpB1Q9p4GrMGmze+O4U6sECa9JUT\r\nY0QtLSASFC5t8dMNNEDJIMp4N/wvxZLWNoEA1b1/7JijHK12bf3p/X099qbq\r\nHuwVfiNtZncVm9SRn54GBSK/BeUHle9SZOP2hrwdTENNGbxUNpQi9Rh+4Lm/\r\n2SNdmfBiq0fnDwIudLy+8bLCZNYiOQ8wVbeMUgX1rfcfbvWg05hyguZW7I7S\r\nmkzpL83xGGtTOnfwOC6bbEVrTpVQerzEYgltqEqIbQm4lhz4X1wXKIdssAbu\r\ny7od68Esz48iy7FPULfE2nZV6KR3mLpEzLijUnTJfdcsN1ZBJ10vrUm/bk0y\r\nqUzyxfILqkxgiXqU/H17WRcRib0NZ3pLbkgP7pw6ZJUSo6EXQX34IU8PhzCL\r\nXDLSWswWMoDD8N/Dc2AW5wWz3rER7JUc8LimYmZyZeNPccL3HKXyndW/4j6I\r\nSjT90QpxcxQCI80y3rcrjf5s/PPCBphCwULf1L0AhJW/BH0ZHG4bDzav5mVt\r\n6Dk5uOF3yS9rn+PMr1U4qhGRs3Qb7nZoe+HbgCGqlwDdSNqgXRTUckoi/E5w\r\n6zi2R+QugWcaWBR510NMgTLnBysry1sXmHY=\r\n=5cHG\r\n-----END PGP SIGNATURE-----\r\n","size":4515,"noattachment":false,"key":"/uint8-varint/-/uint8-varint-1.0.3.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uint8-varint_1.0.3_1659686857438_0.515045963800016"},"_hasShrinkwrap":false,"readme":"# uint8-varint <!-- omit in toc -->\n\n[![codecov](https://img.shields.io/codecov/c/github/achingbrain/uint8-varint.svg?style=flat-square)](https://codecov.io/gh/achingbrain/uint8-varint)\n[![CI](https://img.shields.io/github/actions/workflow/status/achingbrain/uint8-varint/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/achingbrain/uint8-varint/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> Read/write unsigned varints from Uint8Arrays and Uint8ArrayLists\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n  - [Browser `<script>` tag](#browser-script-tag)\n- [Usage](#usage)\n- [API Docs](#api-docs)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Install\n\n```console\n$ npm i uint8-varint\n```\n\n### Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `Uint8Varint` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/uint8-varint/dist/index.min.js\"></script>\n```\n\n## Usage\n\n```js\nimport { Uint8ArrayList } from 'uint8arraylist'\nimport * as varint from 'uint8-varint'\n\nconst value = 12345\n\nconst buf = new Uint8ArrayList(\n  new Uint8Array(2)\n)\nvarint.encode(value, buf)\n\nvarint.decode(buf) // 12345\n```\n\n## API Docs\n\n- <https://achingbrain.github.io/uint8-varint>\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","publish_time":1659686857590,"_cnpm_publish_time":1659686857590,"dist-tags":{"latest":"3.0.0"}}