{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.3","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":"5f37554e6b248f9a69d59d22810dfb2f0187e98a","_id":"it-pb-rpc@0.1.3","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Zzq7ODzzFSZLsYzQVRqqaOnQENslRt0kY6QQ8ApaciCaX4xXJhtIFK9UrPbWAgXkyTDFJuLH5GgDAph/JN7JQg==","shasum":"3d8e98454cd3fda31a4767b86267b45a7a141aa6","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.3.tgz","fileCount":4,"unpackedSize":4628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzCADCRA9TVsSAnZWagAAFcYP/RdZ93FvXM0+JJsyMUiv\nELivHuF2WyYvZ2P72+m4BDVEqwySAVzaE5q4DxrOatoXNH+jkOrceWO9cEMi\nbP4YWZFQ8tF1NuwrxOqs8cZQYum25k452EtHJ01CsMUflg3amKmAoGv8wSfa\nPV53sChPcRXcP9WcBkoKKdVSY86bZLKN1BDO9xndlBP+eYVms7jojEGCjujT\nhO3FuKkBl2UXoYfXHDQysPdt4vDSz2pZvxw2EUSt2OUHmngHoNn5Ues78xzw\nJQOXqS5RsXhMAcOt54mV7PR7+gftFKWUZDLdbx3vb2bbci/y+es9dfuVax0N\nwL4FiB4OESwX5YhyQlbjYY5wRnFHvS18P5wnnk4VHN+CYaGWsSAkOn8t45eC\n+Mg529Iz4d6yMovFWsqK9/zB4oWqqEUqeS2ActlHpkO7vMFy2qKKCHIARKv8\nPZVs13cY9jXY+K/oSGFTqOxkW9nuiW5qjRzPsxCrngVvH8H4Axn/m0d3KZRu\nS2D2A3duoKnFwwSL2in6AnZChJhX2yY8P0smlR4r7/y5jq7MinC5RdzUtbud\nTDzCDR9KI2JRRT+99Rr0l70OV9/ANl9Yhe/HdXsmaAFpKXHqfOjtLzv1GPZM\n2aZ2+woP5WdEYZwp7lSkgpS6nFVGi3eDXXszb3ggPiQAOdfCryKDXcDA09M1\n+bzI\r\n=DpTR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8NiS5byUJO1efc3EQDiQvx+/W9mxpSPhbbgrBGvmCnwIhAPLxXxkBBoxU7Tgnl2k7vM6dnVd3NPnsMKl3040V+8zd"}],"size":1682,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.3.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.3_1573658626754_0.6811501972409848"},"_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":1573658626911,"_cnpm_publish_time":1573658626911,"dist-tags":{"latest":"0.2.0"}}