{"name":"length-prefixed-stream","version":"1.6.0","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":"38fbbadc9d854ace430b6b8c57cbacd925d5a7aa","_id":"length-prefixed-stream@1.6.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-gsJvrb5giDqil/ScQ7fEoplsI2Ch4DwnvnfTW2EGl9KBW6Ekzn8JSNESObqNAeZD8HkSjEMvc5XjhuB66fsSZQ==","shasum":"6aeeecf38a337172ea0472250e90f5e15b8b2334","tarball":"http://registry-npm.ywwl.com/length-prefixed-stream/download/length-prefixed-stream-1.6.0.tgz","fileCount":9,"unpackedSize":12436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK2EpCRA9TVsSAnZWagAAQOwP/Ah0iGsV9n97G2i64Lm+\nwUXeF+KdLzpWOUs64elLJ92PIrIgjZaLezs3QulJEhY1P05Gaxqg95YXP3mA\nMnCLdJxAy7Y72ZyF9WAwu7uh9xr7805IFSphnA8ssjATkxiJso/bPSLFrB16\nGZ0jLvRct8DNE9ksWu5nYNtkhMu8xKjWvb9IYV5h4TxUpBUjvN9KCxsFIQ6r\nNHYSF25buIHEcuMvoBcZ4cLUWxDxHIV7QzGRjx0x5f3zbUEsW8B/M4O8T2z0\nZdmWZnfmZ3hBBIJ9pFMSC/yS87dUl4CEVrHHh8F4axqs3MD5CjnxKxz7VCE8\ndeS5RdqK+06EkPv8UAEf/lBN0eCEKiKb3I0DtJEN2cx0pfyhFbpBUHB6Qebz\nap4N3AVHNLiceGEHLpcOkDillv4204JT9LvOPqdh3CRYS/DseW2kcIObqSHn\nf9n2oXghmZyeK2bkNJjT5yA7YXUHi/aRvzCTzToR3FRKLIf8wkaOQNDSGu1n\n+3zH5zqfHS55IsMLanHMz4Sll8KYmWuNyAGQh8Am6UDb9btA36p/SXSNvZtK\ntaV4vTKC4HyipDUHdKKKWqDXkzOnH4z5qw/NlyJ25sB2L2jWF8INSMMrlYH/\nArf6TjsYIHhmt7wJGCJ3nyYOLM3JfUJO3DdjKFoGC1AG3XiT38PUCvbHKcal\nC1dW\r\n=SzjI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkM9H2I4zOR+EIKQABFBRh8rl1ADJs1++Q7aWPfiEScAiEA+FA0Wr4sUFNoQBsyFup5P+4nrH6fILnNrLe0ivVhHrY="}],"size":3779,"noattachment":false,"key":"/length-prefixed-stream/-/length-prefixed-stream-1.6.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/length-prefixed-stream_1.6.0_1529569576127_0.06559820301792252"},"_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":1529569576199,"_cnpm_publish_time":1529569576199,"dist-tags":{"latest":"2.0.0"}}