read-slice
read part of a file
Installation
With npm
$ npm install read-slice --save
then in your app:
var slice =
API
slice(file:String, from:Number, to:Number)
read a portion of file
. slice
returns a Result though you can access the internal callback based implemenation as slice.plain
Example
the head(1) executable can be loosly emulated by defining head
as
{ }
Running the tests
$ make test