{"_id":"fs-read-exactly","_rev":"437797","name":"fs-read-exactly","description":"Read exactly n bytes of an fd or file","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"vweevers","email":""}],"time":{"modified":"2021-08-05T06:22:58.000Z","created":"2016-12-19T21:20:25.405Z","1.0.0":"2016-12-19T21:20:25.405Z"},"users":{},"author":{"name":"Vincent Weevers"},"repository":{"type":"git","url":"git+https://github.com/vweevers/fs-read-exactly.git"},"versions":{"1.0.0":{"name":"fs-read-exactly","version":"1.0.0","description":"Read exactly n bytes of an fd or file","license":"MIT","author":{"name":"Vincent Weevers"},"files":["index.js"],"scripts":{"test":"node test.js"},"dependencies":{"fs-lotus":"~1.0.1"},"devDependencies":{"tape":"~4.6.3"},"repository":{"type":"git","url":"git+https://github.com/vweevers/fs-read-exactly.git"},"bugs":{"url":"https://github.com/vweevers/fs-read-exactly/issues"},"homepage":"https://github.com/vweevers/fs-read-exactly","keywords":["chunk","fs","read"],"engines":{"node":">=4.0.0","npm":">=2.0.0"},"gitHead":"4107abdad14bc4557c5789b184b7d961915a83ee","_id":"fs-read-exactly@1.0.0","_shasum":"c80089c08a174f900aebd8f911462b4f38e6cb5c","_from":".","_npmVersion":"4.0.3","_nodeVersion":"6.8.0","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":""}],"dist":{"shasum":"c80089c08a174f900aebd8f911462b4f38e6cb5c","size":1888,"noattachment":false,"key":"/fs-read-exactly/-/fs-read-exactly-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-read-exactly/download/fs-read-exactly-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-read-exactly-1.0.0.tgz_1482182424789_0.6759246410802007"},"directories":{},"publish_time":1482182425405,"_cnpm_publish_time":1482182425405,"_hasShrinkwrap":false}},"readme":"# fs-read-exactly\n\n**Read exactly n bytes of an fd or file**\n\n[![npm status](http://img.shields.io/npm/v/fs-read-exactly.svg?style=flat-square)](https://www.npmjs.org/package/fs-read-exactly) [![node](https://img.shields.io/node/v/fs-read-exactly.svg?style=flat-square)](https://www.npmjs.org/package/fs-read-exactly) [![Travis build status](https://img.shields.io/travis/vweevers/fs-read-exactly.svg?style=flat-square&label=travis)](http://travis-ci.org/vweevers/fs-read-exactly) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/fs-read-exactly.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/vweevers/fs-read-exactly) [![Dependency status](https://img.shields.io/david/vweevers/fs-read-exactly.svg?style=flat-square)](https://david-dm.org/vweevers/fs-read-exactly)\n\n## example\n\n```js\nconst readExactly = require('fs-read-exactly')\n\nreadExactly('readme.md', 0, 15, function (err, chunk) {\n  console.log(err) // null\n  console.log(chunk.toString()) // '# fs-read-exact'\n})\n\nreadExactly('readme.md', 0, 1e4, function (err, chunk) {\n  console.log(err.code) // 'EOF'\n})\n```\n\n## `readExactly(mixed, pos, length, callback)`\n\nWhere `mixed` is either a filename or a file descriptor.\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install fs-read-exactly\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers\n","_attachments":{},"homepage":"https://github.com/vweevers/fs-read-exactly","bugs":{"url":"https://github.com/vweevers/fs-read-exactly/issues"},"license":"MIT"}