{"name":"byte-access","version":"1.0.0","description":"Access data in Uint8ArrayLists and Uint8Arrays in a uniform way","license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/byte-access#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/byte-access.git"},"bugs":{"url":"https://github.com/achingbrain/byte-access/issues"},"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"},"ignorePatterns":["!.aegir.js","test/ts-use","*.d.ts"]},"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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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 -t node","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":{"uint8arraylist":"^1.5.2"},"devDependencies":{"aegir":"^37.4.5"},"gitHead":"f57ed207afe1b6b0bce9a0d3973109ba2ea3fe8c","_id":"byte-access@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ITmGgjlwYE8YdspN0RSzQ15QlS3UdiJKJoX4kN5quQR2+mUoYMwFboUNq22mrDweE9LmgK/zHtLxDt1WvvsmxA==","shasum":"96d25ae21613af9ab4993dc3cd6220b3c6b06bb7","tarball":"http://registry-npm.ywwl.com/byte-access/download/byte-access-1.0.0.tgz","fileCount":8,"unpackedSize":7268,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZWHPcEQA0Jv9KSVXR6Ce42P3iFX14IuQoQoOOeB+2KAiAE6AJNJgoUsEi0zCoBcLHVMLftW2T8qMZSOkP2QFdS0g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4Q3dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokDxAAihY2bqx2QTfUrIuVHXRZhwozcv71p1MfQW5axs58Y4zppIZx\r\nJesm+2p1V5MkSIWTrFBaGtCeKBGRZ0Vd1P31PKBzgmWNy556HCfezSOCP/Vn\r\nxdng945e9J2UBcxSZIT9fAVL6WBsDl2xFBR2G9TRn9AWdRHDCuHg7TV/DDuZ\r\nkXF85OXvW0vq+Tgp45Uko571B0NFf1WMuq+56BHSjPCDhmWVsRwi3VYhoRWq\r\nRlxYL8tsyZh3K2IWZAp4zWiNnlFQupFlTkDGye8tzGr65XAtly7hLXw8p4nC\r\nCJNjAcakG6CzhoFApBQxjlaoe94lqli4OgbGMWDt4peg4Nb+KzaAZZQRHJUi\r\nsmuGlEPVzBQBGbq0lIjMQUcL8tDNQ/uqiDOH/zmtfZ1Kzje8YIMRbC5mjIoL\r\npVsDuthT9Im3QZ8a3LT9yUy+VJxWhiOk4pjZh/ulrArWVYItMQc5o6wE68QI\r\ntq6MtDm2HzpYIlhBIQ0FSZcJHER9DyjRaGKNWt6MIZG8TRMWhOwzmJakZUoJ\r\nXcsZneFBn4oqVhVGl9GRdSqsc8n7SAAeIC3cy26YBbUWzhoeb//6wqOEKEE6\r\nlEl/hnuskv5WwOTQuArH0kr7RWamzLoCDgu/1r+xTFTGXY0xYPMzAHv3A7DR\r\neM4kRTQSXPZJRKsfzWEsFnaUrFHbVREoz5U=\r\n=bYCI\r\n-----END PGP SIGNATURE-----\r\n","size":2435,"noattachment":false,"key":"/byte-access/-/byte-access-1.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-access_1.0.0_1658916317572_0.01316294979592958"},"_hasShrinkwrap":false,"readme":"# byte-access <!-- omit in toc -->\n\n[![codecov](https://img.shields.io/codecov/c/github/achingbrain/byte-access.svg?style=flat-square)](https://codecov.io/gh/achingbrain/byte-access)\n[![CI](https://img.shields.io/github/workflow/status/achingbrain/byte-access/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/achingbrain/byte-access/actions/workflows/js-test-and-release.yml)\n\n> Access data in Uint8ArrayLists and Uint8Arrays in a uniform way\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Install\n\n```console\n$ npm i byte-access\n```\n\n## Usage\n\n```js\nimport { Uint8ArrayList } from 'uint8arraylist'\nimport accessor from 'byte-access'\n\n// access Uint8Array data\nconst array = Uint8Array.from([0, 1, 2, 3, 4])\nconst arrayAccess = accessor(array)\narrayAccess.get(1) // 1\narrayAccess.set(1, 2)\n\n// access Uint8ArrayList data\nconst list = new Uint8ArrayList(\n  Uint8Array.from([0, 1, 2]),\n  Uint8Array.from([3, 4])\n)\nconst listAccess = accessor(list)\nlistAccess.get(1) // 1\nlistAccess.set(1, 2)\n```\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":1658916317747,"_cnpm_publish_time":1658916317747,"dist-tags":{"latest":"1.0.1"}}