1.0.0-beta.1 • Published 3 years ago

@prasadrajandran/strip-comments-cli v1.0.0-beta.1

Weekly downloads
48
License
MIT
Repository
github
Last release
3 years ago

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 | stripcomments
    • cat source.js | stripcomments > source.stripped.js
  • Print results to stdin, overwrite the files, or write the files to a different directory:
    • stripcomments ./src/source.js
    • stripcomments -w ./src/source.js
    • stripcomments -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-cli
stripcomments [OPTION]... [FILE/GLOB]...

Locally

npm i @prasadrajandran/strip-comments-cli
npx stripcomments [OPTION]... [FILE/GLOB]...