@prasadrajandran/strip-comments-cli
v1.0.0-beta.1
Published
Strip comments from JavaScript, CSS, HTML, TypeScript, and more via the command line
Downloads
1,694
Maintainers
Readme
strip-comments-cli
Strip comments from JavaScript, CSS, HTML, TypeScript, and more. This is a CLI wrapper for "strip-comments" by Jon Schlinkert.
Highlights
- Supports globbing patterns (via your shell):
stripcomments ./dist/*.js ./src/*.ts
- Supports piping:
cat source.js | stripcommentscat source.js | stripcomments > source.stripped.js
- Print results to stdin, overwrite the files, or write the files to a
different directory:
stripcomments ./src/source.jsstripcomments -w ./src/source.jsstripcomments -wo ./out ./src/source.js
How Do I Use It?
Have a look at the man page for more information.
Globally
npm i -g @prasadrajandran/strip-comments-clistripcomments [OPTION]... [FILE/GLOB]...Locally
npm i @prasadrajandran/strip-comments-clinpx stripcomments [OPTION]... [FILE/GLOB]...