strip-comments icon indicating copy to clipboard operation
strip-comments copied to clipboard

CLI

Open slavaGanzin opened this issue 6 years ago • 2 comments

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.

slavaGanzin avatar Feb 09 '20 15:02 slavaGanzin

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 (?))

personalcomputer avatar Dec 29 '21 22:12 personalcomputer

Here is where the discussion continued: https://github.com/jonschlinkert/strip-comments/pull/10 & https://github.com/jonschlinkert/strip-comments/pull/11

personalcomputer avatar Dec 29 '21 22:12 personalcomputer