{"_id":"pull-length-prefixed","_rev":"4645808","name":"pull-length-prefixed","description":"Streaming length prefixed buffers with pull-streams","dist-tags":{"latest":"1.3.3"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"time":{"modified":"2026-04-10T20:15:55.000Z","created":"2016-06-13T11:42:34.241Z","1.3.3":"2019-05-03T16:03:15.700Z","1.3.2":"2019-04-04T12:01:26.063Z","1.3.1":"2018-07-13T10:57:49.184Z","1.3.0":"2017-05-28T20:26:26.675Z","1.2.1":"2017-04-11T09:33:05.784Z","1.2.0":"2016-09-05T14:06:59.042Z","1.1.0":"2016-09-01T11:29:50.399Z","1.0.0":"2016-06-13T11:42:34.241Z"},"users":{},"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"versions":{"1.3.3":{"name":"pull-length-prefixed","version":"1.3.3","description":"Streaming length prefixed buffers with pull-streams","main":"src/index.js","scripts":{"test":"aegir test -t node -t browser","test:browser":"aegir test -t browser","test:node":"aegir test -t node","lint":"aegir lint","release":"aegir release -t node -t browser","release-minor":"aegir release --type minor -t node -t browser","release-major":"aegir release --type major -t node -t browser","build":"aegir build","coverage":"npx nyc -s npm run test:node -- --bail","coverage-publish":"npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.2.0","pull-reader":"^1.3.1","safe-buffer":"^5.1.2","varint":"^5.0.0"},"devDependencies":{"aegir":"^18.2.1","chai":"^4.2.0","pull-block":"^1.4.0","pull-stream":"^3.6.9"},"contributors":[{"name":"Dmitriy Ryajov","email":"dryajov@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Jacob Heun","email":"jake@andyet.net"},{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},{"name":"Projjol Banerji","email":"probaner23@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@users.noreply.github.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"gitHead":"b22fbe1408447a0efbd6aff8d9bd4c42c9ea0366","_id":"pull-length-prefixed@1.3.3","_nodeVersion":"10.11.0","_npmVersion":"6.8.0","dist":{"shasum":"aa01aea117ef8be45ff6b0534e636827fa63b554","size":88442,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.3.3.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-length-prefixed_1.3.3_1556899395551_0.5230119995214244"},"_hasShrinkwrap":false,"publish_time":1556899395700,"_cnpm_publish_time":1556899395700,"_cnpmcore_publish_time":"2021-12-16T11:27:40.720Z"},"1.3.2":{"name":"pull-length-prefixed","version":"1.3.2","description":"Streaming length prefixed buffers with pull-streams","main":"src/index.js","scripts":{"test":"aegir test -t node -t browser","test:browser":"aegir test -t browser","test:node":"aegir test -t node","lint":"aegir lint","release":"aegir release -t node -t browser","release-minor":"aegir release --type minor -t node -t browser","release-major":"aegir release --type major -t node -t browser","build":"aegir build","coverage":"npx nyc -s npm run test:node -- --bail","coverage-publish":"npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.2.0","pull-reader":"^1.3.1","safe-buffer":"^5.1.2","varint":"^5.0.0"},"devDependencies":{"aegir":"^18.2.1","chai":"^4.2.0","pull-block":"^1.4.0","pull-stream":"^3.6.9"},"contributors":[{"name":"Dmitriy Ryajov","email":"dryajov@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Jacob Heun","email":"jake@andyet.net"},{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},{"name":"Projjol Banerji","email":"probaner23@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"gitHead":"7090f5df2e4ade1e9821ee8be0e4b27bbcd48b3d","_id":"pull-length-prefixed@1.3.2","_nodeVersion":"10.11.0","_npmVersion":"6.8.0","dist":{"shasum":"041f50771188abda68999825b3354d919fc016fc","size":88641,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.3.2.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-length-prefixed_1.3.2_1554379285921_0.01229861884941652"},"_hasShrinkwrap":false,"publish_time":1554379286063,"_cnpm_publish_time":1554379286063,"_cnpmcore_publish_time":"2021-12-16T11:27:41.189Z"},"1.3.1":{"name":"pull-length-prefixed","version":"1.3.1","description":"Streaming length prefixed buffers with pull-streams","main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.0.1","pull-reader":"^1.3.0","safe-buffer":"^5.0.1","varint":"^5.0.0"},"devDependencies":{"aegir":"^11.0.1","chai":"^4.1.2","pull-block":"^1.2.0","pull-stream":"^3.5.0"},"contributors":[{"name":"Dmitriy Ryajov","email":"dryajov@gmail.com"},{"name":"Jacob Heun","email":"jake@andyet.net"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"gitHead":"d907be0b0bc29d20ae4a69c8825a3ea3f2fb49fe","_id":"pull-length-prefixed@1.3.1","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"32292d44a87f5b2397cb281cf63a64d2da68ea0c","size":126198,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.3.1.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-length-prefixed_1.3.1_1531479468915_0.9861588374108166"},"_hasShrinkwrap":false,"publish_time":1531479469184,"_cnpm_publish_time":1531479469184,"_cnpmcore_publish_time":"2021-12-16T11:27:41.632Z"},"1.3.0":{"name":"pull-length-prefixed","version":"1.3.0","description":"Streaming length prefixed buffers with pull-streams","main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.0.1","pull-reader":"^1.2.9","safe-buffer":"^5.0.1","varint":"^5.0.0"},"devDependencies":{"aegir":"^11.0.1","chai":"^3.5.0","pull-block":"^1.2.0","pull-stream":"^3.5.0"},"contributors":[{"name":"Dmitriy Ryajov","email":"dryajov@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"gitHead":"d005bce15fb8405235ef59abee163060408db974","_id":"pull-length-prefixed@1.3.0","_npmVersion":"5.0.0","_nodeVersion":"7.9.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"99f3dac7ea4f896d905f4d2da224460811703a5e","size":118666,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.3.0.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-length-prefixed-1.3.0.tgz_1496003185322_0.12052775011397898"},"directories":{},"publish_time":1496003186675,"_hasShrinkwrap":false,"_cnpm_publish_time":1496003186675,"_cnpmcore_publish_time":"2021-12-16T11:27:42.383Z"},"1.2.1":{"name":"pull-length-prefixed","version":"1.2.1","description":"Streaming length prefixed buffers with pull-streams","main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.0.1","pull-reader":"^1.2.9","safe-buffer":"^5.0.1","varint":"^5.0.0"},"devDependencies":{"aegir":"^11.0.1","chai":"^3.5.0","pull-block":"^1.2.0","pull-stream":"^3.5.0"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"}],"gitHead":"0161e1a8dc0e68ba6c2addea361b6087e5c7ce5c","_id":"pull-length-prefixed@1.2.1","_shasum":"fa00ca142a85f347a91d6c12da416ef5659897dc","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.2.1","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"fa00ca142a85f347a91d6c12da416ef5659897dc","size":118069,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.2.1.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-length-prefixed-1.2.1.tgz_1491903183760_0.22296783165074885"},"directories":{},"publish_time":1491903185784,"_hasShrinkwrap":false,"_cnpm_publish_time":1491903185784,"_cnpmcore_publish_time":"2021-12-16T11:27:42.884Z"},"1.2.0":{"name":"pull-length-prefixed","version":"1.2.0","description":"Streaming length prefixed buffers with pull-streams","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.0.1","pull-reader":"^1.2.8","safe-buffer":"^5.0.1","varint":"^4.0.1"},"devDependencies":{"aegir":"^6.0.0","chai":"^3.5.0","pull-block":"^1.0.1","pull-stream":"^3.4.3"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"}],"gitHead":"f979615ed1c45728aff794c5c9e623dbd002cc10","_id":"pull-length-prefixed@1.2.0","_shasum":"e70b10327a726acc6ebb96e17cc9a70569c6e811","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"e70b10327a726acc6ebb96e17cc9a70569c6e811","size":215680,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.2.0.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-length-prefixed-1.2.0.tgz_1473084417084_0.7705975682474673"},"directories":{},"publish_time":1473084419042,"_hasShrinkwrap":false,"_cnpm_publish_time":1473084419042,"_cnpmcore_publish_time":"2021-12-16T11:27:43.465Z"},"1.1.0":{"name":"pull-length-prefixed","version":"1.1.0","description":"Streaming length prefixed buffers with pull-streams","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-pushable":"^2.0.1","pull-reader":"^1.2.8","safe-buffer":"^5.0.1","varint":"^4.0.1"},"devDependencies":{"aegir":"^6.0.0","chai":"^3.5.0","pull-block":"^1.0.1","pull-stream":"^3.4.3"},"contributors":[{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"}],"gitHead":"2ea9d6ce9fb687595dc591305ab91f6db7345d5a","_id":"pull-length-prefixed@1.1.0","_shasum":"5a91cee299bb0f0b7a8541ffa581c39775d96594","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"5a91cee299bb0f0b7a8541ffa581c39775d96594","size":214193,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.1.0.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-length-prefixed-1.1.0.tgz_1472729388453_0.682730007218197"},"directories":{},"publish_time":1472729390399,"_hasShrinkwrap":false,"_cnpm_publish_time":1472729390399,"_cnpmcore_publish_time":"2021-12-16T11:27:44.017Z"},"1.0.0":{"name":"pull-length-prefixed","version":"1.0.0","description":"Streaming length prefixed buffers with pull-streams","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"test":"aegir-test","test:browser":"aegir-test browser","test:node":"aegir-test node","lint":"aegir-lint","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","build":"aegir-build","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"repository":{"type":"git","url":"git+https://github.com/dignifiedquire/pull-length-prefixed.git"},"keywords":["varint","pull-stream","length-prefixed-stream","length-prefixed"],"author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","dependencies":{"pull-reader":"^1.2.5","safe-buffer":"^5.0.1","varint":"^4.0.0"},"devDependencies":{"aegir":"^3.2.0","chai":"^3.5.0","pull-pushable":"^2.0.0","pull-stream":"^3.4.2"},"gitHead":"503b74ec6ccc77ebf48e282d28e4e0e78b94b9b8","_id":"pull-length-prefixed@1.0.0","_shasum":"4f6a1b8df13b835462dd7d213315f2d406c58522","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},"dist":{"shasum":"4f6a1b8df13b835462dd7d213315f2d406c58522","size":285421,"noattachment":false,"key":"/pull-length-prefixed/-/pull-length-prefixed-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pull-length-prefixed/download/pull-length-prefixed-1.0.0.tgz"},"maintainers":[{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pull-length-prefixed-1.0.0.tgz_1465818151645_0.8538784256670624"},"directories":{},"publish_time":1465818154241,"_hasShrinkwrap":false,"_cnpm_publish_time":1465818154241,"_cnpmcore_publish_time":"2021-12-16T11:27:45.109Z"}},"readme":"# pull-length-prefixed\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Coverage Status](https://coveralls.io/repos/github/dignifiedquire/pull-length-prefixed/badge.svg?branch=master)](https://coveralls.io/github/dignifiedquire/pull-length-prefixed?branch=master)\n[![Travis CI](https://travis-ci.org/dignifiedquire/pull-length-prefixed.svg?branch=master)](https://travis-ci.org/dignifiedquire/pull-length-prefixed)\n[![Circle CI](https://circleci.com/gh/dignifiedquire/pull-length-prefixed.svg?style=svg)](https://circleci.com/gh/dignifiedquire/pull-length-prefixed)\n[![Dependency Status](https://david-dm.org/dignifiedquire/pull-length-prefixed.svg?style=flat-square)](https://david-dm.org/dignifiedquire/pull-length-prefixed) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n> Streaming length prefixed buffers with pull-streams\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Installation\n\n```bash\n$ npm install --save pull-length-prefixed\n```\n\n## Usage\n\n```js\nvar pull = require('pull-stream')\nvar lp = require('pull-length-prefixed')\n\n// encode\npull(\n  pull.values([Buffer.from('hello world')]),\n  lp.encode(),\n  pull.collect(function (err, encoded) {\n    if (err) throw err\n    console.log(encoded)\n    // => [Buffer <0b 68 65 6c 6c 6f 20 77 6f 72 6c 64>]\n  })\n)\n\n// decode\npull(\n  pull.values(encoded), // e.g. from above\n  lp.decode(),\n  pull.collect(function (err, decoded) {\n    if (err) throw err\n    console.log(decoded)\n    // => [Buffer <68 65 6c 6c 6f 20 77 6f 72 6c 64>]\n  })\n)\n```\n\n## API\n\n### `encode([opts])`\n\n- `opts: Object`, optional\n  - `fixed: false`: If true uses a fixed 4 byte Int32BE prefix instead of varint\n\nBy default all messages will be prefixed with a varint. If you want to use a fixed length prefix you can specify this through the `opts`.\n\nReturns a pull-stream through.\n\n### `decode([opts])`\n\n- `opts: Object`, optional\n  - `fixed: false`: If true uses a fixed 4 byte Int32BE prefix instead of varint\n  - `maxLength`: If provided, will not decode messages longer than the size specified, if omitted will use the current default of 4MB.\n\nBy default all messages will be prefixed with a varint. If you want to use a fixed length prefix you can specify this through the `opts`.\n\n\nReturns a pull-stream through.\n\n### `decodeFromReader(reader, [opts], cb)`\n\n- `reader: [pull-reader](https://github.com/dominictarr/pull-reader)`\n- `opts: Object`, optional. Same as for `decode`.\n- `cb: Function`: Callback called with `(err, message)`.\n\nThis uses a [pull-reader](https://github.com/dominictarr/pull-reader) instance to reade and decode a single message. Useful when using [pull-handshake](https://github.com/pull-stream/pull-handshake) with length prefixed messages.\n\n\n## Contribute\n\nPRs and issues gladly accepted! Check out the [issues](//github.com/dignifiedquire/pull-length-prefixed/issues).\n\n## License\n\nMIT © 2016 Friedel Ziegelmayer\n","_attachments":{},"homepage":"https://github.com/dignifiedquire/pull-length-prefixed#readme","bugs":{"url":"https://github.com/dignifiedquire/pull-length-prefixed/issues"},"license":"MIT"}