Skip to content

michalbe/read-part-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
});

About

Get just part of the file in easy way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published