{"id":18600341,"url":"https://github.com/manage-console/console-manager","last_synced_at":"2026-01-24T01:37:32.574Z","repository":{"id":257810083,"uuid":"866583870","full_name":"manage-console/console-manager","owner":"manage-console","description":"Remove console.log statements from current file or whole project, comment all console.log statements in current file or whole project with a single command.","archived":false,"fork":false,"pushed_at":"2024-10-04T23:24:49.000Z","size":423,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T23:13:11.983Z","etag":null,"topics":["clean-code","console-log","husky-hooks","npm","remove-console"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=ConsoleManager.clg-manger","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manage-console.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-02T14:19:27.000Z","updated_at":"2024-10-05T14:05:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"6da3f783-5fab-43e2-aa23-d20e03137306","html_url":"https://github.com/manage-console/console-manager","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.1428571428571429,"last_synced_commit":"572181a7b7148ec1f5de22a68f95483924d8d252"},"previous_names":["manage-console/console-manager"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manage-console%2Fconsole-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manage-console%2Fconsole-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manage-console%2Fconsole-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manage-console%2Fconsole-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manage-console","download_url":"https://codeload.github.com/manage-console/console-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590632,"owners_count":21772940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-code","console-log","husky-hooks","npm","remove-console"],"created_at":"2024-11-07T02:03:43.413Z","updated_at":"2026-01-24T01:37:32.544Z","avatar_url":"https://github.com/manage-console.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console Manager 🧹✨\n\n## Overview\n\nConsole Manager is a powerful Visual Studio Code extension designed to streamline your JavaScript and TypeScript development process. It offers efficient tools for managing `console.log` statements and other console methods in your code, helping you clean up your projects quickly and effectively.\n\n## Features 🚀\n\n- 🗑️ Remove `console.log` statements from the current file or entire project\n- 💬 Comment out `console.log` statements instead of removing them\n- 🎛️ Customizable settings for included/excluded files and folders\n- 🛡️ Safe operation with clear feedback\n\n## Installation 📦\n\n1. Open Visual Studio Code\n2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac)\n3. Search for \"Console Manager\"\n4. Click Install\n\n## Usage 🛠️\n\n### Commands\n\nAccess these commands through the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac):\n\n1. `Remove console.log from Current File`\n2. `Remove console.log from All Project Files`\n3. `Comment console.log in Current File`\n4. `Comment console.log in All Project Files`\n\n### Command Line Usage\n\nIn addition to the Visual Studio Code interface, you can also use the Console Manager through the command line. For more information, visit the ✨[manage-console-cli repository](https://github.com/manage-console/manage-console-cli).✨\n\n### Examples\n\n#### Before using Console Manager\n\n````javascript\nfunction calculateTotal(items) {\n  console.log(\"Calculating total...\");\n  let total = 0;\n  for (let item of items) {\n    console.log(`Processing item: ${item.name}`);\n    total += item.price;\n  }\n  console.log(`Total calculated: ${total}`);\n  return total;\n}\n\n\n#### After using \"Remove console.log from Current File\"\n\n```javascript\nfunction calculateTotal(items) {\n  let total = 0;\n  for (let item of items) {\n    total += item.price;\n  }\n  return total;\n}\n````\n\n#### After using \"Comment console.log in Current File\"\n\n```javascript\nfunction calculateTotal(items) {\n  // console.log('Calculating total...');\n  let total = 0;\n  for (let item of items) {\n    // console.log(`Processing item: ${item.name}`);\n    total += item.price;\n  }\n  // console.log(`Total calculated: ${total}`);\n  return total;\n}\n```\n\n## Working with Multiple Files 📁\n\nConsole Manager excels at processing multiple files simultaneously, making it perfect for cleaning up entire projects quickly. Here's how it works:\n\n### Example Project Structure\n\n```\nmy-project/\n├── src/\n│   ├── main.js\n│   ├── utils.js\n│   └── components/\n│       ├── Header.js\n│       └── Footer.js\n├── tests/\n│   └── test.js\n└── config.js\n```\n\n### Before Using Console Manager\n\n**src/main.js**\n\n```javascript\nimport { helper } from \"./utils\";\n\nfunction main() {\n  console.log(\"Application starting...\");\n  const result = helper(5);\n  console.log(\"Result:\", result);\n  return result;\n}\n```\n\n**src/utils.js**\n\n```javascript\nexport function helper(x) {\n  console.log(\"Helper function called with:\", x);\n  return x * 2;\n}\n```\n\n**src/components/Header.js**\n\n```javascript\nfunction Header() {\n  console.log(\"Rendering header\");\n  return \"\u003cheader\u003eWelcome\u003c/header\u003e\";\n}\n```\n\n**tests/test.js**\n\n```javascript\nfunction testHelper() {\n  console.log(\"Running tests...\");\n  const result = helper(3);\n  console.log(\"Test result:\", result);\n  assert(result === 6);\n}\n```\n\n### After Using \"Remove console.log from All Project Files\"\n\n**src/main.js**\n\n```javascript\nimport { helper } from \"./utils\";\n\nfunction main() {\n  const result = helper(5);\n  return result;\n}\n```\n\n**src/utils.js**\n\n```javascript\nexport function helper(x) {\n  return x * 2;\n}\n```\n\n**src/components/Header.js**\n\n```javascript\nfunction Header() {\n  return \"\u003cheader\u003eWelcome\u003c/header\u003e\";\n}\n```\n\n**tests/test.js**\n\n```javascript\nfunction testHelper() {\n  const result = helper(3);\n  assert(result === 6);\n}\n```\n\nNote: `config.js` remains unchanged as it's in the `excludedFiles` list by default.\n\n### Benefits of Bulk Processing\n\n1. **Time-Saving**: Clean up multiple files with a single command.\n2. **Consistency**: Ensure all `console.log` statements are removed or commented across your entire project.\n3. **Flexible**: Customizable settings allow you to include or exclude specific files or folders.\n4. **Pre-Deployment Ready**: Quickly prepare your entire codebase for production by removing debug logs.\n\n### Usage Tips for Multiple Files\n\n- Use the \"Remove console.log from All Project Files\" command to process the entire project.\n- Customize the `excludedFolders` and `excludedFiles` settings to protect specific areas of your project.\n- After bulk processing, review changes in your version control system to ensure desired results.\n- For large projects, consider running the command on specific folders or file types first to gauge its impact.\n\nBy leveraging Console Manager's ability to process multiple files, you can maintain clean, production-ready code across your entire project with minimal effort.\n\n## Configuration ⚙️\n\nCustomize the extension's behavior through VS Code settings:\n\n```json\n{\n  \"consoleLogRemover.includedExtensions\": [\".js\", \".ts\", \".jsx\", \".tsx\"],\n  \"consoleLogRemover.excludedFolders\": [\n    \"node_modules\",\n    \"dist\",\n    \"build\",\n    \".git\"\n  ],\n  \"consoleLogRemover.excludedFiles\": [\n    \"config.js\",\n    \"config.json\",\n    \"package.json\",\n    \"package-lock.json\"\n  ]\n}\n```\n\n- `includedExtensions`: File types to process\n- `excludedFolders`: Folders to ignore\n- `excludedFiles`: Specific files to ignore\n\n## Why Use Console Manager? 🤔\n\n- 🎯 **Targeted Cleaning**: Choose between cleaning a single file or the entire project\n- ⚡ **Fast and Efficient**: Quickly remove or comment out debugging statements before deployment\n- 🔒 **Safe**: Excludes sensitive files and folders by default\n- 👁️ **Clear Feedback**: Shows how many files were processed and cleaned\n\n## Contributing 🤝\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License 📄\n\nThis extension is licensed under the MIT License.\n\n## Support 💬\n\nIf you encounter any issues or have suggestions, please [open an issue](https://github.com/manage-console/console-manager/issues) on our GitHub repository.\n\n---\n\nHappy coding! 🚀✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanage-console%2Fconsole-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanage-console%2Fconsole-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanage-console%2Fconsole-manager/lists"}