1.0.0 • Published 7 years ago

fs-read-chunk v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

1.0.0

7 years ago