{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.5","description":"A convinience-wrapper arround protocol-buffers and lp-messages functions","main":"src/index.js","author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"license":"MPL-2.0","scripts":{"test":"mocha -A","cov":"nyc mocha"},"devDependencies":{"it-pair":"^1.0.0","mkgs-tool":"^0.1.3","mocha":"*","nyc":"*","streaming-iterables":"^4.1.1"},"dependencies":{"it-handshake":"^1.0.1","it-length-prefixed":"^3.0.0"},"repository":{"type":"git","url":"git+https://github.com/mkg20001/it-pb-rpc.git"},"bugs":{"url":"https://github.com/mkg20001/it-pb-rpc/issues"},"homepage":"https://github.com/mkg20001/it-pb-rpc#readme","gitHead":"204e2a09ed5293e6f48fcf646b4364f3d26c5072","_id":"it-pb-rpc@0.1.5","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-BgFQDEJoQFtidEARsL5uif595AJ5gjhn2Mycquh1PS2Oi96i42fnE4XT0QwW0qDWCIe50FD9QOIqsJcJH5mNAQ==","shasum":"52f6bbafb43ee6da2fd6f0ec95ed36b5272753c3","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.5.tgz","fileCount":4,"unpackedSize":5641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePfx6CRA9TVsSAnZWagAAwNUQAJqSfNTcY6DNzp5D7lZG\nGQufqfmuidGnI7VJ7I2B3NS945KTesbnduniMktwf+L051HAWBO5GQjwv0w4\n9HIMHdZ161MeuViN3Y8HG8ks/59F5uNVYneivJaTQgst+TUH/Aw2EajWIOCu\nKoGFFCvxL3N/m6ihNn58IRN+lPckBItuRzrH7t/dfltkJ+vubBHQecrJwxnD\nVA9fyLqWW6/KA0FXo9OKSJc3wIJvdATbsCEmNiNr0fMkfEWdTs/W+jfNBG1D\np8xI5q3qKQsSOfNP9uu6eI7CU2QcvJdgx4wd2mMsTitBbRMGeaiPc4UPaP5t\nBtY5BKQSLXIEmPbgtYpjfrQIPFUlr2P6vaBGMsS6JMd6BQcCAr8o9axVxCZh\nhXZRBIoFG+l3h+Rk5vsbahK1W6lgtoJyJ+D79Em/Xfr5WCgrbzCFK6rneDJx\n+kX/gNSDKNbcMDdPxexTExjjuTINtGogV7shXv71LJe6UHSA+OuKDxczEKcN\n9kYqGVQLlGSj18Bm/DArufrVW14jsMBIVD98HKvk7b0O+0S94HlJ7hpfhHdf\nVECaH7SwFYY7JrHCQYDiO6cto7cHg/mAPJW8/iRAKF1COdqU1b6CjWtRexpg\nzUw0nWRrRttEaki7CqXKpv843SBeZ3ZyV1WfRMzBz9hw8IvRT7Nzob6C5DIe\nM/YC\r\n=ZXog\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJ6N7f69aHW4lkZXjHfL7qH7Hywsl/AM/Q9Nv+xSTJYAiEAlJdXueusZ9Key+SNZ6hGEe4URV/Tk74CHlRl5ZuRBSc="}],"size":1923,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.5.tgz"},"maintainers":[{"name":"mkg20001","email":"mkg20001@gmail.com"}],"_npmUser":{"name":"mkg20001","email":"mkg20001@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/it-pb-rpc_0.1.5_1581120633800_0.017863340730140065"},"_hasShrinkwrap":false,"readme":"# it-pb-rpc\n\nA convinience-wrapper arround protocol-buffers and lp-messages functions\n\n# API\n\n- `wrap(duplex, opts)`: Wraps a duplex, returns below object (opts=Object with encode/decode opts from [it-length-prefixed api](https://www.npmjs.com/package/it-length-prefixed#api))\n  - `.read(bytes)`: async, reads the given amount of bytes\n  - `.readLP()`: async, reads one length-prefixed message\n  - `.readPB(proto)`: async, reads one protocol-buffers length-prefixed message (proto=Object with .encode, .decode functions)\n  - `.write(data)`: writes the given data (data=Buffer or BufferList)\n  - `.writeLP(data)`: writes the given data with a length-prefixe (data=Buffer or BufferList)\n  - `.writePB(data, proto)`: encodes the data, then writes it withg a length-prefix (data=Buffer or BufferList, proto=Object with .encode, .decode functions)\n  - `.pb(proto)`: returns a convinience wrapper for writing messages\n    - `.read()`: reads one length-prefixed message encoded with `proto`\n    - `.write(data)`: writes one length-prefixed message encoded with `proto`\n","publish_time":1581120634261,"_cnpm_publish_time":1581120634261,"dist-tags":{"latest":"0.2.0"}}