{"name":"it-pb-stream","version":"2.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":{".":{"types":"./dist/src/index.d.ts","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":"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: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:node":"aegir test -t node --cov","test:electron-main":"aegir test -t electron-main","release":"aegir release"},"dependencies":{"it-handshake":"^4.0.1","it-length-prefixed":"^8.0.2","it-stream-types":"^1.0.4","uint8arraylist":"^2.0.0"},"devDependencies":{"aegir":"^37.4.7","buffer":"^6.0.3","it-pair":"^2.0.2","uint8arrays":"^3.0.0"},"gitHead":"37dc8b2e58ac1b0adaed7f5a58161552bba10d1a","_id":"it-pb-stream@2.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-nX/61k3xNeOYhQVLo2w3fhM3x9/I/WRo8Q+gBcuFTw8ki2A9mSB956CnL2bQ2qGqevWOXPeJBwMJuGGSvfgyJw==","shasum":"5e230bcf988d011a4cb671df4b63beb34b6687df","tarball":"http://registry-npm.ywwl.com/it-pb-stream/download/it-pb-stream-2.0.1.tgz","fileCount":8,"unpackedSize":15034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPJ2VNK37rVB2o0pYrS+oVdAmQw1wIiwgJBzGdaV+XRwIhAPHDtA4RTcAyzNSS6Ps8bdzo0YQUpkyOukjPATeV+RgE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi56GNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqLRAApIqR1mdl2OBHyIgB7NFuAFZ4s1eMT61P9d1PX63ZO88xmKU8\r\nUmWoenOhSyShWhCKqeEFzWV+/YKxc1q87JmWbAUU/6cPZx6W+gyAChgwRgVx\r\njOGQCAv1CRZG1yY1UjXwoXu7iUol9U6Q0TC9xogzHL5Ys4jFiEvnNvt81zMR\r\nlVkiXm6l5/ZvAfHL6XyROOnqnTnUr1yoOXGx7m2IFgyb4GfUpe0tQyveOF3b\r\nmcYJSDxZUyOUT8LWm3ZOh4B/qg3ha37ppO7Eu76KYGISL+Nf95S2ihv4vu/c\r\ntgo4LIADZ++LR2MeAI4Ai+hvHOYh3i8VZtnMAnNRuuo1U15twkN3nu5J+c6q\r\noGuhTLgmkzuqLfwzmQepku33O7EYKzCfvn0uPsVg1/p0aNVDks4RzKP4Nb/D\r\nUIw9md4C/ShW3pR29diwJl2jVKgtmXxp4Eu3EvL+9ssSp7+W+FKm6LbmBG0K\r\niIS3hWGX4l8rF61iX2GUrNhBYKTJPNmHYoKtpdCXS95T9CiXnrs396raXzBR\r\no1qX/82mYMs1cZ+A3PlxHr8KAwkMc38LDLk7r3W+mxTnhuKioBwIEmVBorqa\r\nQm+smDzexs/2g6OL1OSwGIGsjfUs73BW7s7hdK8ug1BRtyjIBFKUfkg9oc46\r\nBaY0I2Ut8dB9HHhL0ONwf2NADGSN2cNhWq0=\r\n=Ihpw\r\n-----END PGP SIGNATURE-----\r\n","size":4026,"noattachment":false,"key":"/it-pb-stream/-/it-pb-stream-2.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_2.0.1_1659347341372_0.7419554283151022"},"_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":1659347341530,"_cnpm_publish_time":1659347341530,"dist-tags":{"latest":"4.0.2"}}