streamclean

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i streamclean

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • damonoehlman