sslice

0.1.0 • Public • Published

sslice

Build Status

Slice streams with ease. This was originally created for use with split but should work with any stream buffer delimiter.

var sslice = require('sslice')
  , split  = require('split')
  , fs     = require('fs');
  
// pipe all but the first and last line of a file to stdout
fs.createReadStream(somefile)
  .pipe(split())
  .pipe(sslice(1, -1))
  .pipe(process.stdout)

install

With npm do:

npm install sslice

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i sslice

    Weekly Downloads

    0

    Version

    0.1.0

    License

    BSD

    Last publish

    Collaborators

    • dstokes