{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.9","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.12","mocha":"*","nyc":"*","streaming-iterables":"^5.0.3"},"dependencies":{"is-buffer":"^2.0.4","it-handshake":"^1.0.2","it-length-prefixed":"^3.1.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":"cdd3fc88bf2e803677b19fe21bfabbd7a36a1bb2","_id":"it-pb-rpc@0.1.9","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IMPXz+a+lUEclV5qIlT/1WAjCMIZyqQtMRaKaL8cwgvH2P5LtMJlrbNZr3b4VEONK1H6mqAV1upfMTSSBSrOqA==","shasum":"28cc99e55a9cdbe980c1d8b89729135479a883bc","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.9.tgz","fileCount":5,"unpackedSize":7810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeEVyCRA9TVsSAnZWagAAHOEP/3TT8A3tp1knmP+RR85C\n4EG3evWwcvxLHmlLq+N17G0vo8PHW1VtKgb3BYgy3N58UB0Jg8BErZlMgkV+\ng3Y3BQssYUmhtWguuYXZ+fjcqRNF2Oft1gYPB7VmPOZm34BOn7bhNCkqQtWG\n5QPDzJsYX0Bprw15KChwJdyIm2m0ysT0S0GtaqGwKBgkdy9US6MlLi3cBWTl\ne8RKacibZ7AdpofW1gS/t/zK9BMztxKu45nbXaElV4YSITGf+lU9Fd3ImoLi\nKIzjqa5Ca3wT+YD8Ago0SlBQBXjtgz0oTKeMOweZ57tiOswn+udSfiaCXwl9\ncuMIfrzm0F71sm96M08cI7MTjlKxBJOxUSyFysOUABf3b9qz1FXu1Dk1iUaj\nlXKnnZyUgHA2pkWNWlW7jpEpqcOAdNVEhG9VfmKLPXnhuoydRovhQYghR0G5\nWM1j92dqZ2ge+O/bDbZ6xXJd3m+ljmMzTSm+f6CZ/y5tUFiicSI5zkn4bbTZ\n18nVKHnW67wGqbls1LQNS0y6dlD5M+J8WB2XXpgeoJjDUDZXLE5bjHuYPkjP\nGHlu3fwYFhtLha39yJfFHDPD59ZDbkJ78D1AXehFMf4Tmn/+fis8NbToBMPx\n+587XRqq4FpCnJX2AsWQM6jPHC2Bsf+iISe0DP+NIrL/ZiP+llZ5464gsdrp\n7yev\r\n=3CpJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCURkX+Jjj1xc7scKZjEay2opP5yxr50pvp0r/qgiglTgIgPR8crtLwfbLHPFHUqpJby9pqgN3QJVmie+LCG4f+F0k="}],"size":2473,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.9.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.9_1601717617449_0.10502243072718875"},"_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":1601717617588,"_cnpm_publish_time":1601717617588,"dist-tags":{"latest":"0.2.0"}}