Skip to content

🧹A powerful CLI tool to manage console.log statements in your JavaScript/TypeScript projects.

License

Notifications You must be signed in to change notification settings

manage-console/manage-console-cli

Repository files navigation

Console Manager CLI

🧹A powerful CLI tool to manage console.log statements in your JavaScript/TypeScript projects.

npm version License: MIT

🚀 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:

CLG Manager for VS Code

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

🌟 Show your support

Give a ⭐️ if this project helped you!