{"name":"it-pb-stream","version":"1.0.1","description":"A convenience-wrapper around protocol-buffers and lp-messages functions","author":{"name":"Alex Potsides","email":"alex@achingbrain.net"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/achingbrain/it-pb-stream#readme","repository":{"type":"git","url":"git+https://github.com/achingbrain/it-pb-stream.git"},"bugs":{"url":"https://github.com/achingbrain/it-pb-stream/issues"},"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"import":"./dist/src/index.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":"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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release"},"dependencies":{"it-handshake":"^3.0.1","it-length-prefixed":"^7.0.0","it-stream-types":"^1.0.4","uint8arraylist":"^1.3.0"},"devDependencies":{"aegir":"^36.1.3","buffer":"^6.0.3","it-pair":"^2.0.2","uint8arrays":"^3.0.0"},"gitHead":"3702a202dc09c902e32b3e0f74ede1f79f08ebd8","_id":"it-pb-stream@1.0.1","_nodeVersion":"16.14.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-x8kGcsv4pTXVZYLwGdQKqptAUtzokZBKzPb27KSRL+zrDRrDzPD6j7IOM41obxdM3+fmIHFpNiT9iaIkxOXfbw==","shasum":"8c6417ee54e5548107f73633383441616c98895e","tarball":"http://registry-npm.ywwl.com/it-pb-stream/download/it-pb-stream-1.0.1.tgz","fileCount":8,"unpackedSize":14673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ0VoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdlA/+KdoGZK98L+7y3st5rF5qeuIOq6nGO/LOiDqe3AeOx8cY9FS2\r\ncH837nBe73jeRNyaDsX0RJhqhGCnZtlxIZIy75srQ8PH6ao9u+Aj9bzr3Cs2\r\n24fH0Yc03YsosMZaN18PQQvgxIHpaqSzqXaqh5xKNtdxCUkbCphE9IBhwmMc\r\nJcZTe9pktnnSacdcy/At+seD3XlPYeHFpqoBbxGyAMAujTiBRfvUQmQzQQMR\r\nfzpJ852UwmmuMf74WcsN7hlnDN0DPvmQ1kOzt49arUDt8Yh9ETkRO3gRVwXr\r\nWSRnFvXJDidGqVmana7xGrYiDmP+UZoVvkjqiLLjniQpHhETmUnYXxTd8fQ3\r\nlkjFZH+JK5rPBuCzqUZvSVeP2WB3CD3nxBdqhWTDlJ+aSN5/2vp4/jGeCzFZ\r\nrGKZ0Ufj4HGGmn5Wjm8rizV/FEHYqBmVPYqEC7DJL756Mc1f3+XHQOT4PPWe\r\nFMjD/bYtYY9LgX/3aGjWpnYh0CPBdYaDSTh73gsJ44B0yAo5jaU5EdCfMXwx\r\n3MkHMUosyytXzj3q1eW2BmIBVe+5bQFqxrqh9TZIT3TuPXT2bMLFoqrnVGmB\r\n/r8vGvBha6rvXAmVi2nZ5LLpVJAF5ys9DaPAAV9GFzSNrZlGH49FgCkoaQt2\r\n9dFy7rugm+iNDmJFxjPa/RkuKrq2yNfJthk=\r\n=OK4N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNTuFs9Kn4QdGIhUNAb2DfQHNiEfl0W7xpoXAN+BnU5AiEAwU2K7nYMmVbB5Yo5rRfutgG5NAdqhLDVkZQ6ie9ar0g="}],"size":3842,"noattachment":false,"key":"/it-pb-stream/-/it-pb-stream-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/it-pb-stream_1.0.1_1646740840554_0.323680590749444"},"_hasShrinkwrap":false,"readme":"# it-pb-stream <!-- omit in toc -->\n\n[![codecov](https://img.shields.io/codecov/c/github/achingbrain/it-pb-stream.svg?style=flat-square)](https://codecov.io/gh/achingbrain/it-pb-stream)\n[![CI](https://img.shields.io/github/actions/workflow/status/achingbrain/it-pb-stream/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/achingbrain/it-pb-stream/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> A convenience-wrapper around protocol-buffers and lp-messages functions\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 it-pb-stream\n```\n\n### Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `ItPbStream` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/it-pb-stream/dist/index.min.js\"></script>\n```\n\n- [Install](#install)\n- [Usage](#usage)\n- [License](#license)\n- [Contribution](#contribution)\n\n```sh\n> npm install it-pb-stream\n```\n\n## Usage\n\n```js\nimport { pbStream } from 'it-pb-stream'\n\nconst stream = pbStream(duplex)\nstream.writeLP(buf)\nstream.writePB(buf, def)\n//.. etc\n```\n\n## API Docs\n\n- <https://achingbrain.github.io/it-pb-stream>\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":1646740840676,"_cnpm_publish_time":1646740840676,"dist-tags":{"latest":"4.0.2"}}