{"_id":"read-chunk","_rev":"4502872","name":"read-chunk","description":"Read a chunk from a file","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-09T09:34:20.000Z","created":"2014-01-19T02:58:35.971Z","5.0.0":"2024-06-28T13:38:41.213Z","4.0.3":"2022-08-28T14:35:17.847Z","4.0.2":"2021-09-02T14:43:11.600Z","4.0.1":"2021-09-01T23:15:27.122Z","4.0.0":"2021-08-09T19:41:38.482Z","3.2.0":"2019-03-31T18:52:51.178Z","3.1.0":"2019-03-06T05:37:33.897Z","3.0.0":"2018-08-26T09:13:09.840Z","2.1.0":"2017-07-30T16:53:43.441Z","2.0.0":"2016-04-21T22:08:58.178Z","1.0.1":"2015-01-17T13:52:30.384Z","1.0.0":"2014-08-13T17:06:59.949Z","0.1.0":"2014-01-19T02:58:35.971Z"},"users":{"itonyyo":true,"panlw":true,"mojaray2k":true,"faraoman":true,"h0ward":true,"ognjen.jevremovic":true,"jnoodle":true,"larrychen":true,"maxorelus":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"versions":{"5.0.0":{"name":"read-chunk","version":"5.0.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"devDependencies":{"ava":"^6.1.3","sinon":"^18.0.0","tsd":"^0.31.1","uint8array-extras":"^1.1.0","xo":"^0.58.0"},"_id":"read-chunk@5.0.0","gitHead":"c0ad28d504b188d578c5bfc66d5a349ba9a4e5db","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_nodeVersion":"22.2.0","_npmVersion":"10.6.0","dist":{"shasum":"ed653bb18d89029bc076f7b981717c1b8b5b066b","size":1988,"noattachment":false,"key":"/read-chunk/-/read-chunk-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_5.0.0_1719581921049_0.7811241633026578"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-28T13:38:41.213Z","publish_time":1719581921213,"_source_registry_name":"default","maintainers":[{"name":"sindresorhus","email":""}],"_cnpm_publish_time":1719581921213},"4.0.3":{"name":"read-chunk","version":"4.0.3","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^5.0.0"},"devDependencies":{"@types/node":"^16.4.13","ava":"^3.15.0","sinon":"^11.1.2","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"c21f6faa8753cb57fa92013488c8bb83c5dabe1e","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@4.0.3","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"d345230139210fc6d7ba4c607080c93630518310","size":2041,"noattachment":false,"key":"/read-chunk/-/read-chunk-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-4.0.3.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_4.0.3_1661697317653_0.41383816592723677"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-28T14:35:22.500Z","publish_time":1661697317847,"_cnpm_publish_time":1661697317847},"4.0.2":{"name":"read-chunk","version":"4.0.2","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^5.0.0"},"devDependencies":{"@types/node":"^16.4.13","ava":"^3.15.0","sinon":"^11.1.2","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"ab89881c34636f80030521b80f68ab7fe8034a14","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@4.0.2","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"a2bb5fda9370b5967268011c73ce4fe33021497a","size":2041,"noattachment":false,"key":"/read-chunk/-/read-chunk-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-4.0.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_4.0.2_1630593791495_0.7294983103413883"},"_hasShrinkwrap":false,"publish_time":1630593791600,"_cnpm_publish_time":1630593791600},"4.0.1":{"name":"read-chunk","version":"4.0.1","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^5.0.0"},"devDependencies":{"@types/node":"^16.4.13","ava":"^3.15.0","sinon":"^11.1.2","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"a061f7a633ab1a04ab3417509e7bf2e327f97470","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@4.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"83788ad08bfc22aff61b3b5a2f00a34999ad0c31","size":2042,"noattachment":false,"key":"/read-chunk/-/read-chunk-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_4.0.1_1630538127010_0.22896094887472973"},"_hasShrinkwrap":false,"publish_time":1630538127122,"_cnpm_publish_time":1630538127122},"4.0.0":{"name":"read-chunk","version":"4.0.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^5.0.0"},"devDependencies":{"@types/node":"^16.4.13","ava":"^3.15.0","sinon":"^11.1.2","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"8e7c8c79006c83f79caa025c3ef4839e18a49d00","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"72227db5545c2b20a3cc3a203621da056c17b16e","size":2041,"noattachment":false,"key":"/read-chunk/-/read-chunk-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_4.0.0_1628538098345_0.04906882123396006"},"_hasShrinkwrap":false,"publish_time":1628538098482,"_cnpm_publish_time":1628538098482},"3.2.0":{"name":"read-chunk","version":"3.2.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^4.0.1","with-open-file":"^0.1.6"},"devDependencies":{"@types/node":"^11.12.2","ava":"^1.4.1","sinon":"^7.3.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"dc202c0970a6e104e8c08ebdb48580dd9d541745","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@3.2.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2984afe78ca9bfbbdb74b19387bf9e86289c16ca","size":2066,"noattachment":false,"key":"/read-chunk/-/read-chunk-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_3.2.0_1554058371064_0.5780840096514703"},"_hasShrinkwrap":false,"publish_time":1554058371178,"_cnpm_publish_time":1554058371178},"3.1.0":{"name":"read-chunk","version":"3.1.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^4.0.1","with-open-file":"^0.1.5"},"devDependencies":{"@types/node":"^11.10.4","ava":"^1.3.1","sinon":"^7.2.7","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"7471511c8de3d06a655b9f8242628438c9b95d47","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@3.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4aab805e68b1b2c72a2fe5aefa8284faf623b1c0","size":2015,"noattachment":false,"key":"/read-chunk/-/read-chunk-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_3.1.0_1551850653716_0.04422912879555985"},"_hasShrinkwrap":false,"publish_time":1551850653897,"_cnpm_publish_time":1551850653897},"3.0.0":{"name":"read-chunk","version":"3.0.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^4.0.0","with-open-file":"^0.1.3"},"devDependencies":{"ava":"*","sinon":"^6.1.5","xo":"*"},"gitHead":"42a86a2bcda7f035c597592e4723cfe096d66ac9","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@3.0.0","_npmVersion":"6.4.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"086cd198406104355626afacd2d21084afc367ec","size":1742,"noattachment":false,"key":"/read-chunk/-/read-chunk-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk_3.0.0_1535274789781_0.40244403554431796"},"_hasShrinkwrap":false,"publish_time":1535274789840,"_cnpm_publish_time":1535274789840},"2.1.0":{"name":"read-chunk","version":"2.1.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^3.0.0","safe-buffer":"^5.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"6c28ff8f5dd1dec086c1f97b0091c473a285622c","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@2.1.0","_shasum":"6a04c0928005ed9d42e1a6ac5600e19cbc7ff655","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6a04c0928005ed9d42e1a6ac5600e19cbc7ff655","size":1850,"noattachment":false,"key":"/read-chunk/-/read-chunk-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-chunk-2.1.0.tgz_1501433622531_0.07705382723361254"},"directories":{},"publish_time":1501433623441,"_hasShrinkwrap":false,"_cnpm_publish_time":1501433623441},"2.0.0":{"name":"read-chunk","version":"2.0.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-chunk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"dependencies":{"pify":"^2.3.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"691fbce2642bd16c867840e5111567bc0f377be1","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk#readme","_id":"read-chunk@2.0.0","_shasum":"3246e877829116cec059674c4d5f300f7a9261f3","_from":".","_npmVersion":"3.8.7","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3246e877829116cec059674c4d5f300f7a9261f3","size":1852,"noattachment":false,"key":"/read-chunk/-/read-chunk-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/read-chunk-2.0.0.tgz_1461276535222_0.07627808698453009"},"directories":{},"publish_time":1461276538178,"_cnpm_publish_time":1461276538178,"_hasShrinkwrap":false},"1.0.1":{"name":"read-chunk","version":"1.0.1","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/read-chunk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"devDependencies":{"mocha":"*"},"gitHead":"6abec373c92cee4e07a721ca5a0cd8a187bb04ad","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk","_id":"read-chunk@1.0.1","_shasum":"5f68cab307e663f19993527d9b589cace4661194","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"5f68cab307e663f19993527d9b589cace4661194","size":1106,"noattachment":false,"key":"/read-chunk/-/read-chunk-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-1.0.1.tgz"},"directories":{},"publish_time":1421502750384,"_cnpm_publish_time":1421502750384,"_hasShrinkwrap":false},"1.0.0":{"name":"read-chunk","version":"1.0.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/read-chunk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"devDependencies":{"mocha":"*"},"gitHead":"e14d7ff1bedc17a72dbfccd6b14648d0c0aeb2b0","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk","_id":"read-chunk@1.0.0","_shasum":"25cb13628f002770a4e3c80f2a8692649589ce9b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"25cb13628f002770a4e3c80f2a8692649589ce9b","size":1068,"noattachment":false,"key":"/read-chunk/-/read-chunk-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-1.0.0.tgz"},"directories":{},"publish_time":1407949619949,"_cnpm_publish_time":1407949619949,"_hasShrinkwrap":false},"0.1.0":{"name":"read-chunk","version":"0.1.0","description":"Read a chunk from a file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/read-chunk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["read","file","readfile","fs","chunk","slice","part","head","tail","buffer","fd","open"],"devDependencies":{"mocha":"*"},"readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"homepage":"https://github.com/sindresorhus/read-chunk","_id":"read-chunk@0.1.0","dist":{"shasum":"2495496ae3753862a95e87d2b4ccf0e11b7792ee","size":1088,"noattachment":false,"key":"/read-chunk/-/read-chunk-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-chunk/download/read-chunk-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1390100315971,"_cnpm_publish_time":1390100315971,"_hasShrinkwrap":false}},"readme":"# read-chunk\n\n> Read a chunk from a file\n\nBecause the built-in way requires way too much boilerplate.\n\n## Install\n\n```sh\nnpm install read-chunk\n```\n\n## Usage\n\n```js\nimport {readChunk} from 'read-chunk';\n\n// foo.txt => hello\n\nawait readChunk('foo.txt', {length: 3, startPosition: 1});\n//=> 'ell'\n```\n\n## API\n\n### readChunk(filePath, {length, startPosition})\n\nReturns a `Promise<Uint8Array>` with the read chunk.\n\n### readChunkSync(filePath, {length, startPosition})\n\nReturns a `Uint8Array` with the read chunk.\n\n#### filePath\n\nType: `string`\n\n#### length\n\nType: `number`\n\nThe number of bytes to read.\n\n#### startPosition\n\nType: `number`\n\nThe position to start reading from.\n","_attachments":{},"homepage":"https://github.com/sindresorhus/read-chunk#readme","bugs":{"url":"https://github.com/sindresorhus/read-chunk/issues"},"license":"MIT"}