About this project

strip-comments-js is a tool designed to strip comments from JavaScript and TypeScript source code. It provides both a CLI for processing files and a programmatic API for string manipulation. The tool offers granular control over which types of comments are removed through several options: - pattern: Filter comments to strip based on a specific pattern. - licenseHeader: Control the removal of copyright headers. - line: Toggle the stripping of single-line comments. - block: Toggle the stripping of block comments. - jsdoc: Toggle the removal of JSDoc style comments. - protected: Toggle the removal of protected comments (e.g., starting with //! or /*!). - sourcemap: Toggle the removal of source mapping comments. - spdx: Control the removal of SPDX short-form identifiers.