🧹A powerful CLI tool to manage console.log statements in your JavaScript/TypeScript projects.
- Remove console.log statements from your code
- Comment out console.log statements
- Process individual files or entire projects
- Exclude specific files or directories
Install the package globally using npm:
npm install -g manage-console-cliInstall the package as a dev dependency in your project:
npm install manage-console-cli --save-devTo remove console.log statements from a specific file:
console-manager remove --file path/to/your/file.jsTo remove console.log statements from all files in the current directory and its subdirectories:
console-manager comment --allBy default, the tool processes .js, .ts, .jsx, and .tsx files. It excludes the following directories:
- node_modules
- dist
- build
- .git
And the following files:
- config.js
- config.json
- package.json
- package-lock.json
If you prefer a visual interface, you can use our VS Code extension that provides the same functionality:
This extension allows you to manage console.log statements directly from your VS Code editor.
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
This project is MIT licensed.
Mohamed Nabih
- Github: @muhammad-nabih
Give a ⭐️ if this project helped you!