{"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":{"integrity":"sha512-GKYa+lvxnzhgHWj9X+LCsQ4s2/C5uvib573eAOiQKywXMkzFFErY2+yQdzmdE5iWVpmqecsRx3bOtOY4/1eINw==","shasum":"84badd99be3671c03f0dd6a039a9c963983724af","tarball":"http://registry-npm.ywwl.com/byte-access/download/byte-access-1.0.1.tgz","fileCount":8,"unpackedSize":7267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjZrEWBvoOdKrmKA62fA5+2BGeTYdhRQ7OkRFmJdRlKAiAfOH6L99MTph92Merx4k8Y3bencOcm8LZRzRVPhc1zOg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4rqwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq07RAAgNBWML3k5t0A5B0XM0f/8biJOlRm4U6eWJdDckNt4I6uD9gJ\r\ng/4/aE+fZopdgQHW67+Z/Gf/OY15ftHY9G2bwmZredyToAYwBR09E4imVAGW\r\niiuDO0MZo2BG0ywYi3L+oOpurX/rGJgM6rsGQRKPp62lPPH1E3Jg6k73FNEr\r\nQCikNpSKCqRlJ5vkDLu/YK0/J3s/TWvgeqYkB2IoR2hPZVsgLmxyXv8IHVJ3\r\nQsqunIL6pIawMkApGOfzLdtZ9a9SWLqaiAE0+VinBsqL7FarpuWQLjWibYj8\r\nj2Ee299XBt+gXMJsQ4VHLxJl8fiEd1oJY8wA3tykEsDgUve/UYiPX2juQzH3\r\n2EyY0X3emkpdtrYqbw4H+ScZU1dxxW7PJzAkOWfe2Hq/npLToHhRKM3dlf49\r\npofnfAFdjD7FthFvT7bqdDtrCa8c/DKVM9AE64JtxIr1BZwug7y302wWrU3z\r\np1HJt95VkjLgKNjosc1EepdQTgaJoFuEjPV7cDXGfeuuLaN92QY9Z30lj3sY\r\nRpxLuzv5bZGz9wEp1J2QbjeKNiDHoWAUQ2oWbo8JSwA25NuG/7TKdcGTTHPr\r\nRVtEVYME77q/Y7zMkx5GWLu+rC/ATVAmp39YKS9BFrUzbZyKJ5Ok6d3qEdvn\r\n/Jyyk7sNXgQUyabE+2WGZb4StArWhUI0jrQ=\r\n=rXqe\r\n-----END PGP SIGNATURE-----\r\n","size":2436,"noattachment":false,"key":"/byte-access/-/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,"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":1659026096283,"_cnpm_publish_time":1659026096283,"dist-tags":{"latest":"1.0.1"}}