0.2.5 • Published 12 years ago
read-slice v0.2.5
read-slice
read part of a file
Getting Started
With npm
$ npm install read-slice --savethen in your app:
var read-slice = require('read-slice')API
slice(file:String, from:Number, to:Number, encoding:String)
read a portion of file
Example
the head(1) executable can be loosly emulated by defining head as
function head(file){
return slice(file, 0, 100)
}Running the tests
$ npm install
$ make testNote: these commands don't work on windows.