0.2.5 • Published 10 years ago

read-slice v0.2.5

Weekly downloads
37
License
-
Repository
github
Last release
10 years ago

read-slice

read part of a file

Getting Started

With npm

$ npm install read-slice --save

then 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 test

Note: these commands don't work on windows.

0.2.5

10 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago