Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…
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')));
What happens when npm’s amazing community gets together to share with one another? Buy a ticket »
how? learn more