{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.1","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":{"mkgs-tool":"^0.1.3","mocha":"*","nyc":"*"},"dependencies":{"it-handshake":"^1.0.1","it-length-prefixed":"github:jacobheun/pull-length-prefixed#feat/fromReader"},"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":"2af3383dcaa53d782994d2f570ac0eda813debff","_id":"it-pb-rpc@0.1.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-dBTa+/Zfrn9It4ZI2uofQKWtzLkhTufP2g9OTbhsnSAI5JQ3coGJoaBIBwbk2uXQGeP0Kr9EdxO0GvdbWhRkqw==","shasum":"e57ae2400cb073ca4713d5c28b267e8a23bed032","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.1.tgz","fileCount":3,"unpackedSize":2318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxDQYCRA9TVsSAnZWagAATPwP/0SXKej4ecNUd1iNUZFB\nDhDG8t6ab8h8G3BteHxvEwiTmcHvukUev224yeyFCbCStxPICIRWmXG0Xai9\njF0k+BT+eE7IUXdBjPPSR4+lOBySmPk/bQYHa7qU0kVLcPXADPBVWtyw8XUn\n34ts26XIgcl2ftX0mU+jim7K3JZPDtKpL4E3wWm8vrnEIQ1leZR+FQqiT9ki\nch6jJvnIN/dZAr9eox/841iw126x0pdB0V7e1FKZPG500v1RtPter+Enr0To\ntXv2mocgSlXMebSPhlHD8q6uFWxhQQ4aCE3oQbjeoHhd9yoyD1BWVNiaOZUp\n+UQb9MbFbhfCb0pQk3iZt9l3n+2n17ITBwn0WL/LKIfAwObrnSgpXCcseIuY\n7WVkq+l8gA2CAch0JmdJEeoLLa4a4OLGi0fo7Yda3rEMAiy7gWMPAYHrl6rx\nGpV3Vvbt9Y9KP2qnM+U3XTx+YrCUlrDfXII9XFzBpSt0B5Ka1MMiyPcCcsTg\niH/iJ0kM+GTUPSwWxYRJEcE0NZDLU+WBQKRfUZeBsLN5KlaaaAkD4e2Sd60i\ncYkSC8cd7TPEZTyUi1PZGD3Qp8x2xOrLnx4bNuW/O8C7xUjX0yW6so7SL+im\naubFJFfQ1wG6W0bDYHAjDhixKva6Eka6slrEzDYuAEZ78A334dVOvgXnvYdM\ndKA+\r\n=5iTh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOAX6Uy8jT1dEdG0Nl9gL6mLnA/UhfB67nL1htvGAUtwIhALVEnciavSV2mSu9WMJMlAChjQmFbpUcYYszgS60N8yt"}],"size":1091,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.1.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.1_1573139480301_0.7815602110998727"},"_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":1573139480535,"_cnpm_publish_time":1573139480535,"dist-tags":{"latest":"0.2.0"}}