Remove unwanted lines from a stream
Removed unwanted lines from a stream.
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')));
Manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…
how? learn more