streamclean

Remove unwanted lines from a stream

npm install streamclean
8 downloads in the last month

StreamClean

Removed unwanted lines from a stream.

Build Status

Example Usage

Suppress comment lines with a regex:

var streamclean = require('streamclean'),
    fs = require('fs'),
    path = require('path');

fs.createReadStream('input.js')
    .pipe(streamclean(/^\s*\/\//))
    .pipe(fs.createWriteStream('output.js')));
npm loves you