read-slice

read part of a file

read-slice

read part of a file

With npm

$ npm install read-slice --save

then in your app:

var read-slice = require('read-slice')

read a portion of file

the head(1) executable can be loosly emulated by defining head as

function head(file){
    return slice(file, 0, 100)
}
$ npm install
$ make test

Note: these commands don't work on windows.