strip-comments
strip-comments copied to clipboard
CLI
Hello thanks for your project!
It would be awesome if strip-comments have CLI mode.
Like this:
const strip = require('strip-comments')
const fs = require('fs')
fs.writeFileSync(process.argv[3] || process.stdout.fd, strip(fs.readFileSync(process.argv[2] || process.stdin.fd, 'utf-8')))
I can make PR.
Prior discussion: https://github.com/jonschlinkert/strip-comments/issues/8 (I'm not sure what happened to this change, it seems like it might not have been merged (?))
Here is where the discussion continued: https://github.com/jonschlinkert/strip-comments/pull/10 & https://github.com/jonschlinkert/strip-comments/pull/11