Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI #52

Open
slavaGanzin opened this issue Feb 9, 2020 · 2 comments
Open

CLI #52

slavaGanzin opened this issue Feb 9, 2020 · 2 comments

Comments

@slavaGanzin
Copy link

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.

@personalcomputer
Copy link

Prior discussion: #8 (I'm not sure what happened to this change, it seems like it might not have been merged (?))

@personalcomputer
Copy link

Here is where the discussion continued: #10 & #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants