{"name":"it-pb-stream","version":"4.0.0","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 -i protons","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","docs":"aegir docs","generate":"protons test/fixtures/*.proto"},"dependencies":{"err-code":"^3.0.1","it-length-prefixed":"^9.0.0","it-pushable":"^3.1.2","it-stream-types":"^2.0.1","protons-runtime":"^5.0.0","uint8-varint":"^1.0.6","uint8arraylist":"^2.0.0"},"devDependencies":{"aegir":"^38.1.6","it-map":"^3.0.2","it-pair":"^2.0.2","it-to-buffer":"^4.0.1","protons":"^7.0.2","uint8arrays":"^4.0.2"},"gitHead":"fc5d7d4a4929b35b0b24dccf36957144596fffa2","_id":"it-pb-stream@4.0.0","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ciP/KJvy++Tm9Mvg5cjxlYqTrPMe6stVYXUoPz/zPuQumWf0AmHf/MO4lHcGHyqfGj3IpU0QhBAG5Xnz8pfIsQ==","shasum":"90fbd8fee30baec72d72b47769ca4c7b35d05599","tarball":"http://registry-npm.ywwl.com/it-pb-stream/download/it-pb-stream-4.0.0.tgz","fileCount":10,"unpackedSize":42618,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDELJ+o5lFwBcQC3DuPQof3o1Xfe8MRmWgpmNLic9cD8wIgbgP+JhB9gUjLrjPaJVvs3hY8GjwuSMPlNT8aiCrTNl8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP9rkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpepxAAmdv5BCbF21Gp6AHanTibjaB1P7Scb8FX6Ca5uJfnik2qyOJJ\r\nM5NL/cGAKHUfuIidyZX3bkNlsLd9MXwKx/YoAN1braQy6opKR3uIsCemneKh\r\nKD4h80XsVnvPtqNfqUPIEhStEtno6/M6aJdGBadFxVLvNh9hVw3dD4JFkaFh\r\n8Apjdfn7pP8dLA/O6TSxEed36ywdDTYhmnun1Q/pA6Nqr2xxIkrUBiRxYpHa\r\n9niWU41ZKFPPUXrM9ICPinyGa28K33T8IEGc3pv51jkFMqOO8h2P5D/CSbv+\r\ns9Gye3H5mDGcJKqwG4DEOeKmrdjtQV/tZH32l/LPLUL7DpBUZNnGYhCNmqQo\r\n5qDV8Mf/LGuIG09bFUugmmJ2Gw2gxXfBWh0VXyUuHMh+m+Q16lTdk0DEkW+g\r\nolwCQhCArb4523sBPJaSsXpJvGHPBlpATL8WTmfaCO2bNucB0K1D09Xoqm4f\r\nqS403Rnw6H2TKS0POz9lyuQ7FRERGEfV7w7O1TgoS+T0Va7n2whUCtlp14hx\r\nt1Vw4VScl6uJtoX5JEMxd2MFit6Hqz5fuJhn5f0dvgFd1A0t+i7JM8euxFkV\r\n3BJtpuYCIsa/ytM+TpJiHdcCZZoAI/aUfpRatnak2ocAsdOuPxqVozBmkKRX\r\nIhSBz9SDIsq9ZgefTJyEj86Cp6JeWERGAkY=\r\n=Q753\r\n-----END PGP SIGNATURE-----\r\n","size":11991,"noattachment":false,"key":"/it-pb-stream/-/it-pb-stream-4.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/it-pb-stream_4.0.0_1681906403876_0.8522309675346791"},"_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":1681906404096,"_cnpm_publish_time":1681906404096,"dist-tags":{"latest":"4.0.2"}}