{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.4","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":"2c7bc7cf349ac7400f726c924e6818ab01ebc7ad","_id":"it-pb-rpc@0.1.4","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-AqQsxOKEgRgaH71w+5ucKRZe9arJKQ0nOEfIaOFwach54oid/0I0eLT1UmMgB+BK0x3Ivn7La9mPASRM8mt7bw==","shasum":"d1b2e76986aafcba433fa4ee43804125c3be1836","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.4.tgz","fileCount":4,"unpackedSize":5580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1sonCRA9TVsSAnZWagAAaKMQAIdeHZ+z9OQuYzDP+7Jf\nIMXyfqdQ8THXwCDv3SJ0lYuikMSUM8v/jFltAyNnaKmV0cOe7B0NJ51sfCLc\nwm7Nfkm03eXOuCvL9kcz2QqJRwXGnuhqZo+kHLcur8tiTEugxdxcIqRVLatV\nV0cEUFC16cKxDn4023iR09WTypt5J2HvmpAfYhm79ocysRFF81t/Jh2IX/iq\nWjPpVjHH5qS1v0kAmg2x6FG9ROEykTv7Pevt5FFb53+4i7/GMyWxNLiJpW0v\n7e9zw0/oGp6vvKfa7PT8cpjDhR3skAxT8g7XZ6EJTuXMrNfhH1XpWWi62ui9\nIcchw5Nbv4mGfNw9XZJfPWBr6SFc1HUX42D3ICKXU8SLoQhLRvcRtNDAN44I\nGHa4L7zLl0kLE5VkWrccF7K7KiTNRfmNIOuZcOss49dnsm16osv03E0NgDb5\npwNhHxAQW9Bir5oaW0kwf5hUVhEpYwxwbtIc4Kd4qyVhHSOoJ734x+P33ZKy\nDNP7yrF/u5siX5Mhbi2n0fo90b1hGpiIW7+YSlwIojUf0IeXcArUIQhVYAX2\nmTAtTZp1vMCs106/Js2Br7SUGJWIi7eSs9TYx+4a0glcM49zO1o15RC6i/Hs\nfPEgjC3d7mITOp7Y35wnbkgzykr/GoYWZNwU8w34r1lTd3HvwKbDJTf1oLzO\nmgIQ\r\n=J4tX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUaS+lR72ij5fGIj9G+5l+N0STFIgoDT1SLdSA9zXcYAiEAnZGP/DecEzlwJLZGod6EU4sJhvl3HmYrygsMK6OeSbM="}],"size":1880,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.4.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.4_1574357543211_0.07060138388754833"},"_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":1574357543335,"_cnpm_publish_time":1574357543335,"dist-tags":{"latest":"0.2.0"}}