{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.0","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":{"mocha":"*","nyc":"*"},"dependencies":{"it-handshake":"^1.0.1","it-length-prefixed":"github:jacobheun/pull-length-prefixed#feat/fromReader","mkgs-tool":"^0.1.3"},"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":"e46220d5f5193aa8198f6f4f6fb48b5354913c48","_id":"it-pb-rpc@0.1.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-2JRbWXzpD96RgZxyVlutoQohgGY1aUYqpGXbIxqtUdg7h0JrzsGTPsmKLyIFn7lB73qslnoHT5zZzra4+yhUzA==","shasum":"1005317b2c9415d29a1fea1ae20f45433fd77e9f","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.0.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\nwsFcBAEBCAAQBQJdxDPECRA9TVsSAnZWagAARQIQAJbyuNHLfL3K3i2nbNn3\nU7VUVMe1mS+vb+kzXptqod86fRZVKe0uR/9MrtbBkPb9CfgYm4ZQYmHE5mPe\n1qnbLeyN2eBuGFg+Y0PlrwEv7Jh5q4biPYlM3/x1EhM63+l3cRpvVAxtlDpw\nJNMAWNb4FleIMFiPlg1GmsOCKc9cq8hI74KYPJoXmgjmgs7rxeLdMoZkFOVx\n2xWVsWlmPrAI8DGz6JWQU4UFXgkBXOy4FUw/zfuBcEVJLS0eBJHwq17bFfP4\nAXxXMMBJA6lpEO24XXCQ/Z4zqf4aQHH7xPO3Ywixo/CKit7zY4+4U6mAjMQr\nTB3Tst7Ksk0hoWrR4H6dcOZ/Z7X+MuOMa0blV6om7UxZVPL10LhmhDLgXmNT\n6zWh/hWt8QJPH7zjD8i5lZ8M7OC2mdy/E4YaefkTGmt9r0BYy6M5ezDuDPuC\n7e3kzGL+ZtPg9wODEGRtqPcF9p09vvV9HZHPtLVhTjYV4yS2AX76E84VUvyX\n6UckH0ulZxADlnEh5CgPk6ATEHkbUOqNIGhOK7Q+qcMNPjuVNlvkE1S3e6mD\ni3KKhbk+G04QKXFcDhLa0AJ/sMEKDa/SEEqvW3pNGLu+IFxoJjy7NaGjT5FB\ncPisyoL3OW9NYX7AULD9hqVbuxSmuj67WSphxIytISfEiUY7gV99Sd3DlQQc\ndm2o\r\n=mqvb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCw0NRYlPvTIJWvlIquW90C3j98w19e3PIrrmsrsj0pqgIhAKO0ZzPmDor8ee2jpmnYYkpBPlhUFL7JrWBgp0fMzIhk"}],"size":1090,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.0.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.0_1573139396351_0.3565137959721718"},"_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":1573139396469,"_cnpm_publish_time":1573139396469,"dist-tags":{"latest":"0.2.0"}}