{"name":"length-prefixed-stream","version":"1.0.0","description":"Streaming length prefixed buffers","main":"index.js","dependencies":{"varint":"^3.0.1"},"devDependencies":{"tape":"^2.14.0","through2":"^0.6.1"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/length-prefixed-stream"},"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":"eb0b5b40f201be22f382f3516da317752172c129","_id":"length-prefixed-stream@1.0.0","_shasum":"a95bf4ee986a40aad7326e55005327e71db6581b","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"a95bf4ee986a40aad7326e55005327e71db6581b","tarball":"http://registry-npm.ywwl.com/length-prefixed-stream/download/length-prefixed-stream-1.0.0.tgz","integrity":"sha512-dUcoWz5ZchNnh2efkjKWYoSZC4nlQfEzDcOOtbZuhCTXsn31nSM6xtK8gYwnH7+lud6k9OFkwegivZYLK6NzEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKhZ3nEZ3gEBbyNaYmXANagbr8TPXTGbC2Uks5X32fSAIgStiWRXgPOWLT5npwHjLDy0psn7dZiBaWAJ9/V/lBcB8="}],"size":2595,"noattachment":false,"key":"/length-prefixed-stream/-/length-prefixed-stream-1.0.0.tgz"},"directories":{},"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":1408198393429,"_cnpm_publish_time":1408198393429,"dist-tags":{"latest":"2.0.0"}}