{"name":"length-prefixed-stream","version":"2.0.0","description":"Streaming length prefixed buffers","main":"index.js","dependencies":{"inherits":"^2.0.3","readable-stream":"^3.1.1","varint":"^5.0.0"},"devDependencies":{"concat-stream":"^2.0.0","from2":"^2.3.0","standard":"^12.0.1","tape":"^4.9.2","through2":"^3.0.0"},"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":"e3a4af9af75279d5495beee74489b1245d54f32e","_id":"length-prefixed-stream@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-dvjTuWTKWe0oEznQcG6a9osfiYknCs7DEFJMP88n9Y581IFhYh1sZIgAFcuDOojKB0G7ftPreKhh4D0kh/VPjQ==","shasum":"16e603c97aefb46f43ae4b5d22f1734ecd14ffce","tarball":"http://registry-npm.ywwl.com/length-prefixed-stream/download/length-prefixed-stream-2.0.0.tgz","fileCount":9,"unpackedSize":12281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWAZqCRA9TVsSAnZWagAAS24P/1p7UnUvqiUJvMZlfsgl\nmqGGxT8FsxkdPyEPX0itFn0XNMcIkahUeYlN1RdxUXznc6IOHYh7KEushNXj\nwzYw312qBAt8iVoFrWu9rAAVDyK47tbDg/BBWVEWSBiUzlIbOX2A4T2T+w5o\npSHnmWyHBFsbNMTBMKTYfw34ZtNdDGWiuABJVxXvcUZttCaqn363bi7c6ubF\noBeqPXZD1fDJ5JLZ+6C6VegsT5beua43vueU76tJVMqmMCmf/eFl55A4I9Rm\n17JZOU6970GX/CQWQSXnifXOxtTqLAcuADsJT/yYRn8m0qbEmOOalyLkkQQZ\n0Vi8lCDyZpfi/EvxLHo9x+xrsDHZjHbLt4j+6VYej65FCxa3RjVgHJK577ls\nJFHq48ydZ29bOE6jdLISNAcVjr/CIK/Hi1WHI8trVFl4lZUWy6szaxV+7/aI\nt/O904Sr2oqvW/vffK5E+eCNU9257+ICCmZOiVwvvVuq8jhryZ2eZs2RrYem\ngiUBK/jEU1zB+SDLgEUQfKa5ItNvhiTA5TIpDzDgjASZLgE1x4ujibcwh+eV\nyuWg6gZGdTAjr87aS53G9OmUJhARpGRQg+ks+ni3DhrtBYjOxQPcgX4IEO6m\niH3NMuuYwOq/CPS/52zNuPfUYIynTFtIlf51dUvaI/UZBNA520WzzTSrPKKl\nDkJt\r\n=Jrxt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHMxMnttvdStu9hf79BSjtDktBj3lx5Krqq3XzARnTnAIgdrdeH9cqQW+EWzrtrX6yIqj609sQvcvB8rAc/wYYHxY="}],"size":3761,"noattachment":false,"key":"/length-prefixed-stream/-/length-prefixed-stream-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/length-prefixed-stream_2.0.0_1549272681794_0.25290754793480774"},"_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":1549272681889,"_cnpm_publish_time":1549272681889,"dist-tags":{"latest":"2.0.0"}}