Remove stubborn stains from your Node streams! Just $9.99 including shipping.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

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')));