read-part-file

1.0.1 • Public • Published

read-part-file by @michalbe

Get just part of the file in easy way

How to use:

npm install read-part-file

then:

var rpf = require('read-part-file');

// Arguments are: filename, first byte, number of bytes, callback
rpf('./LICENSE', 0, 15, function(err, result) {
  console.log(result); // First 15 bytes of the file: 'The MIT License'
});

Readme

Keywords

none

Package Sidebar

Install

npm i read-part-file

Weekly Downloads

5

Version

1.0.1

License

none

Last publish

Collaborators

  • michalbe