fs-read-chunk

1.0.0 • Public • Published

fs-read-chunk

Read n bytes of an fd or file.

npm status node Travis build status AppVeyor build status Dependency status

example

const readChunk = require('fs-read-chunk')

readChunk('readme.md', 0, 15, function (err, chunk) {
  console.log(chunk.toString()) // '# fs-read-chunk'
})

readChunk(mixed, pos, length, callback)

Where mixed is either a filename or a file descriptor.

install

With npm do:

npm install fs-read-chunk

license

MIT © Vincent Weevers

Readme

Keywords

Package Sidebar

Install

npm i fs-read-chunk

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vweevers