{"_id":"byte-access","_rev":"4577450","name":"byte-access","description":"Access data in Uint8ArrayLists and Uint8Arrays in a uniform way","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"time":{"modified":"2026-04-10T15:47:34.000Z","created":"2022-07-27T09:59:22.149Z","1.0.1":"2022-07-28T16:34:56.283Z","1.0.0":"2022-07-27T10:05:17.747Z","0.0.0":"2022-07-27T09:59:22.149Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/achingbrain/byte-access.git"},"versions":{"1.0.1":{"name":"byte-access","version":"1.0.1","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":"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 -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":"^2.0.0"},"devDependencies":{"aegir":"^37.4.5"},"gitHead":"728df0553dea5ed8d4d8fd7f8eafb2e9880064cb","_id":"byte-access@1.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.15.1","dist":{"shasum":"84badd99be3671c03f0dd6a039a9c963983724af","size":2436,"noattachment":false,"key":"/byte-access/-/byte-access-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-access/download/byte-access-1.0.1.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.1_1659026096020_0.918320097179343"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-28T17:00:22.468Z","publish_time":1659026096283,"_cnpm_publish_time":1659026096283},"1.0.0":{"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":{"shasum":"96d25ae21613af9ab4993dc3cd6220b3c6b06bb7","size":2435,"noattachment":false,"key":"/byte-access/-/byte-access-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-access/download/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,"_cnpmcore_publish_time":"2022-07-27T10:06:33.968Z","publish_time":1658916317747,"_cnpm_publish_time":1658916317747},"0.0.0":{"name":"byte-access","version":"0.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":"26fc5f62edd9b78dfafca951001f0a3c3a1d45aa","_id":"byte-access@0.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"f8fb89565641413bf414afc1115f353b4fcef5fc","size":2435,"noattachment":false,"key":"/byte-access/-/byte-access-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/byte-access/download/byte-access-0.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_0.0.0_1658915962012_0.28002589193231153"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-27T10:06:33.630Z","publish_time":1658915962149,"_cnpm_publish_time":1658915962149}},"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","_attachments":{},"homepage":"https://github.com/achingbrain/byte-access#readme","bugs":{"url":"https://github.com/achingbrain/byte-access/issues"},"license":"Apache-2.0 OR MIT"}