String.prototype.slice for streams
JavaScript
Latest commit f2dd38e Jul 19, 2013 @dstokes add npm badge to readme
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

sslice

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

Build Status
NPM

Example

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