manage-console-cli
v1.0.3
Published
A powerful CLI tool to manage console.log statements in your JavaScript/TypeScript projects
Downloads
24
Maintainers
Readme
Console Manager CLI
🧹A powerful CLI tool to manage console.log statements in your JavaScript/TypeScript projects.
🚀 Features
- Remove console.log statements from your code
- Comment out console.log statements
- Process individual files or entire projects
- Exclude specific files or directories
📦 Installation
Install the package globally using npm:
npm install -g manage-console-cli
Install the package as a dev dependency in your project:
npm install manage-console-cli --save-dev
🛠️ Usage
Remove console.log statements
To remove console.log statements from a specific file:
console-manager remove --file path/to/your/file.js
To remove console.log statements from all files in the current directory and its subdirectories:
console-manager comment --all
⚙️ Configuration
By 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
🧩 VS Code Extension
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.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
📝 License
This project is MIT licensed.
👨💻 Author
Mohamed Nabih
- Github: @muhammad-nabih
🌟 Show your support
Give a ⭐️ if this project helped you!