Comment Stripper
Removes comments from code files across multiple programming languages.
About
Comment Stripper is a flexible tool designed to batch process code files, removing comments to streamline code maintenance and preparation. Leveraging regular expression-based pattern matching, it currently supports a wide range of languages including JavaScript, TypeScript, Vue, CSS, HTML, Python, Java, C#, C++, Ruby, and PHP. The tool is MCP-compliant, meaning it integrates easily with other systems, and accepts individual files, directories (including subdirectories), or raw text input for comment removal. Built with Node.js and TypeScript, Comment Stripper offers a robust solution for cleaning code, improving readability, and preparing code for distribution or analysis.
Key Features
- Supports multiple languages including JS, TS, Vue, CSS, HTML, Python, Java, C#, C++, Ruby, and PHP
- Uses Regex-based pattern matching for efficient comment removal
- 0 GitHub stars
- Processes files, directories, or raw text input
- Recursively handles nested directories
- Offers comprehensive logging and error handling
Use Cases
- Clean code maintenance
- Preparation for code distribution
- Code readability improvement