{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.2","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":"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":"ae752d9b2700be530c880c564afc2b448795aaf8","_id":"it-pb-rpc@0.1.2","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-NLW8pmJ2R5MbVQTffvQ33Yn5gExL1iTZS+rMiZKTF8xgZUpdEMBkwWG5K14YHNxv0mcpkTocNujcrMZQsObfbQ==","shasum":"2df84890226ebf0f37f248009ac05ae532f6a554","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.2.tgz","fileCount":4,"unpackedSize":3826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxEIkCRA9TVsSAnZWagAAdpQP+QAtmgBstV5G3Ij3aZou\n6iIHPf/Al0ydcLNjQmwd4cgopO7zjySqRfpNhBloG9aA2lJ8b+XmdeUHdThN\nFRmiV/oGxt4nGEzrYP0qqYHym158P1+7f+hUb5xCA2zB3qNwvVJBb8YLLDCz\nNO5DeUTokEqBe6ebpki59CmMlREyfljx5t8BvC3/v5LTYd4Zf2NXF4XKKDBg\n4wqYHijvtIeyimugvoVCty/WOiOxYgcWe/lc71pFgaTsOzzHsWQDxWoNYqdj\nOM1avTvIQPUvCc1PFa6GlKhV/91A6j/mlzyfiK3ghuPu8mSby1uoh+ayOaTD\nlFSqMk8XVWCcPsUm2KUzF5sHXt7bqvb8uv0C1BsW5uChxstiiD8+QNUuVZKn\nXy5JVUAD9jF0Nw+9DYwjbqGqKym4GZHatjK8GfSPCnjA25DwDqY4ZsaWL/R7\njdW53scr2fXYjM7AVE/7OQezkGZcwVrXjp61xTBInsygdrlH6r973QaNeInS\nwSL8HXTZ9MSo0sfsoh5+P7tQg5ILB/gdJ83D9gbhgjydy0GpsgReoJdkqgb6\nkDDauU3gVGATrXIApeqmMhApH3Hka56WYdz/8P6ys042oz3QmkoHMZ4cvw+7\na8BHO60Ggp1NUa7reDGkridWKxpC2fQQDf2JIvRvbpfW2VXJN5z8MUfjz7Wz\nQ8y8\r\n=TkVn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8aGx0e7RNr1TFahYvs9YC24vklj0pLvDZ8kJ4S857MAiBxnEqudb3TlMggYdN9sNChXZHFdayhAqPXPAovTdHQjA=="}],"size":1480,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.2.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.2_1573143076491_0.4917119425230263"},"_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":1573143076662,"_cnpm_publish_time":1573143076662,"dist-tags":{"latest":"0.2.0"}}