{"name":"it-pb-rpc","template":{"extends":["node"]},"version":"0.1.11","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":"^5.0.0","it-pair":"^1.0.0","mkgs-tool":"^0.1.15","mocha":"*","nyc":"*","streaming-iterables":"^5.0.4"},"dependencies":{"is-buffer":"^2.0.5","it-handshake":"^2.0.0","it-length-prefixed":"^5.0.2"},"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":"58e4ccbd1dde50b9940563dec8d0057f31b98367","_id":"it-pb-rpc@0.1.11","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-1Yvae7LNHNM/WzxWT7OyHqwpA7DZoGos22JioMZ5H6i9iExQf71NHE0phHKEfkJdWLo7SRqPLLbqs2zaeKCwPA==","shasum":"22c3d3e4d635ffdd24453a225ff16cc1bde463c5","tarball":"http://registry-npm.ywwl.com/it-pb-rpc/download/it-pb-rpc-0.1.11.tgz","fileCount":5,"unpackedSize":7811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeXFOCRA9TVsSAnZWagAAnEAP/j77fU3EDqukCPZJGNHF\nM9c3NfpLsXBbdPPGFrum2WVx4bIi7du1L4tCMMTU680aOsuw4h84TDQIjjzJ\nqsP2ienwO1gZ+PmZtPg2218a5obeE+cRhs+EiaQFtsTir/v2S6hoaDYcQwQC\nhjW6GTJ7c20Xti1PN9SyM2OY+DvMii40CvB5ynrmbwxetaJqf2OxwG1s+Rwa\n1A/c+oe4kmcgD0WK/UGdZSF6EJxdkeQMHoyOWRtPPqA5Epoomzr4zZlpM6wL\nfUc3bSwWvJ88NxMlVk0KJDFO5ZmUM2ytbgES1ZYRWvtBGJMa/YRFRQFHEB6M\n/yRaP70Tfy1cLtwklBQR/WKMElwObn8y6AoL1wXIXYHweHlR4XgfdGUTCo0s\nxluiZLTOUjHYYyvigvktCwuqUcZpHJVlSOb4bfrqt4VJ8RcfuKw+uQG1+/BA\n4+ZE8m14e4KEb9hhTnYsxiYhIFHRKeYlYb34uAaAJHArjFjrWX5jehPQQJe2\nkGCNlVVMy86UeEkAulzNSDQGSQogLGGxjGedDxwzChvkq//VAfoAmortw8lG\nFiqSwcqiI8oNIouhP/6G9185xOyBmxLyBuIw39gLLQmfq4/WmRE6XlRTxM6W\nxykhB+vZRFPnujz6HK9XzCe6j5RzRSTx82ahOy+no8XI6T8qhqpuutJgBmvF\nRFRM\r\n=EjuF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTSHR3DuRIEtoH5NkmOIBsl/+YvT79AuhlTyYtDzc5pAiA4/Hyt190C5iEnbEE/MwCDCfBFWOiJr4xhaPI2BlSIKw=="}],"size":2464,"noattachment":false,"key":"/it-pb-rpc/-/it-pb-rpc-0.1.11.tgz"},"_npmUser":{"name":"mkg20001","email":"mkg20001@gmail.com"},"directories":{},"maintainers":[{"name":"mkg20001","email":"mkg20001@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/it-pb-rpc_0.1.11_1618571598207_0.3383303051422091"},"_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":1618571598383,"_cnpm_publish_time":1618571598383,"dist-tags":{"latest":"0.2.0"}}