read-part-file
v1.0.1
Published
Get just part of the file in easy way
Downloads
3
Readme
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'
});