{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.6","description":"A convenience-wrapper around protocol-buffers and lp-messages functions","main":"src/index.js","types":"src/index.d.ts","author":{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},"license":"MPL-2.0","scripts":{"test":"mocha -A","cov":"nyc mocha"},"devDependencies":{"@types/bl":"^2.1.0","it-pair":"^1.0.0","mkgs-tool":"^0.1.6","mocha":"*","nyc":"*","streaming-iterables":"^4.1.2"},"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":"b0c97a4e80f5f2f3c8f65ebf8b204abeae7f8cc2","_id":"it-pb-rpc@0.1.6","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4srJH8iK976tlAEv0wBnud78hxjQsDvrl71lPG7zquNiaqZ3409oqzukC05f6z0UeYwi4M80Bm+gHy/642lJ/g==","shasum":"f6dba92f44a6ce5df8fc71ca08aefe472b552a02","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.6.tgz","fileCount":5,"unpackedSize":7789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRgQmCRA9TVsSAnZWagAA8RYP/RSJ2yM9OP3V/0ZUmO2W\n5C0lt88MW88PZ5uhVbCLIqc99KmQVuMw9UEtZVHKhR4tFBs3CYw8/PCCtg9K\nfErYaZoFSXbEog1VbcDW4RG293PEV3EST1sUdNQ+boUlMswYEE8n4TY8PmJj\n8das2HupLi4QpvrDPq1GeMDDhl2Lj6Ajunki5VZIFoLk2xuytFh1mNV5HHuz\nqkJ4kSu9b5BuXUQkI49D87NlxfhQDb6I/eYbZBoBAe74TAQFD3o8OZFlXdeX\n4fRzdwqILW2RaZjnLvIwyhyR6A8z9Vb6S7cVOPhPR503ss+cs9FIN20CpJ4+\nrfg2knJT7/IuHkqPQdYlNcnAUemRE0s8hzjZOTvWetlqd8628s+Qn1AkQmYP\nqBZT4sjowbJYpdaZYKIbxHPUkL6xOugfySlXPY/KloIT3KoETniuDMy8hbFB\nqaSSXnKLb4IudfwFKCP1rDU/tbFjivdLoj9khNFbj4uXhZBVYLpgWuqGhWxV\nubdF44Vj2rNI5dbcZrvl12xi1/PRm4220L352jjEIh2hIk3UhF+GRHyQeaks\nkhakenoAthfF2v1W2wxFsJBXj8N0Y9+2Y8vvi+97Gul/QfDlv8t0DkfQOtBq\niPSZSse5uXocoHfwlZbH0LvzjPB/SIGgqKWXfpBnZHgYCemYjGwtEBFNP2Kr\nD+Q1\r\n=Pg6S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6LDC52gsS90sDFwLGVyU/a7V9q699aCBSl7Mu1DceRQIhALgUuSo/VFcfhNJTTKTfxo4xuNWUcyqQflk/jXS1iosl"}],"size":2471,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.6.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.6_1581646886069_0.822489979370868"},"_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":1581646886180,"_cnpm_publish_time":1581646886180,"dist-tags":{"latest":"0.2.0"}}