{"name":"length-prefixed-stream","version":"1.5.2","description":"Streaming length prefixed buffers","main":"index.js","dependencies":{"buffer-alloc-unsafe":"^1.0.0","readable-stream":"^2.0.0","varint":"^5.0.0"},"devDependencies":{"buffer-from":"^1.0.0","concat-stream":"^1.4.6","from2":"^2.1.0","standard":"^6.0.7","tape":"^2.14.0","through2":"^0.6.1"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/length-prefixed-stream.git"},"keywords":["varint","length","prefixed","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/length-prefixed-stream/issues"},"homepage":"https://github.com/mafintosh/length-prefixed-stream","gitHead":"59e749f73292be2d4080e9dc8cbfea6b31ea1489","_id":"length-prefixed-stream@1.5.2","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-5kHV/7ZCefC27d4FQLgFHek/pN1S0uEQ8OEgSm55DWO1rKxGi9by4F444aStxa56wB20b6CxZw6KiGPwmJOUmQ==","shasum":"269b29ff76324361727447f1bfacb762e6965a8f","tarball":"http://registry-npm.ywwl.com/length-prefixed-stream/download/length-prefixed-stream-1.5.2.tgz","fileCount":9,"unpackedSize":12016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/0zIn/bjbES4cGBotuHXLyumrdADiuxsugpPD3ncBoAiEAtgQXZBdeJd6/hYqLrL0FDhe64aCCnBQHhhr6Id9RBww="}],"size":3738,"noattachment":false,"key":"/length-prefixed-stream/-/length-prefixed-stream-1.5.2.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/length-prefixed-stream_1.5.2_1521771893124_0.6713791624510206"},"_hasShrinkwrap":false,"readme":"# length-prefixed-stream\n\nStreaming equivalent of [length-prefixed-message](https://github.com/sorribas/length-prefixed-message).\nThis module allow you to send buffers with a varint length prefix to ensure that they will arrive unpartioned\n\n```\nnpm install length-prefixed-stream\n```\n\n[![build status](https://travis-ci.org/mafintosh/length-prefixed-stream.svg?branch=master)](https://travis-ci.org/mafintosh/length-prefixed-stream)\n\n## Usage\n\n``` js\nvar lpstream = require('length-prefixed-stream')\n\nvar encode = lpstream.encode() // create an encode stream to send data\nvar decode = lpstream.decode() // create an decode stream to receive data\n\nencode.write('hello world') // send \"hello world\"\n\ndecode.on('data', function(data) {\n  console.log(data.toString()) // will always print \"hello world\"\n})\n\nencode.pipe(decode) // for testing just pipe to our selves\n```\n\n## API\n\n#### `transformStream = lpstream.encode()`\n\nCreates a new encoder transform stream.\n\n#### `transformStream = lpstream.decode()`\n\nCreates a new decoder transform stream.\n\n## License\n\nMIT\n","publish_time":1521771893185,"_cnpm_publish_time":1521771893185,"dist-tags":{"latest":"2.0.0"}}