{"id":27168937,"url":"https://github.com/basemax/js-logs-remover-rust","last_synced_at":"2026-05-19T04:02:51.264Z","repository":{"id":286932840,"uuid":"961364000","full_name":"BaseMax/js-logs-remover-rust","owner":"BaseMax","description":"js-logs-remover is a command-line utility written in Rust that removes specified console logging methods (e.g., console.log(), console.error()) from JavaScript/TypeScript files within a directory. This tool is useful for cleaning up log statements before deploying or publishing code.","archived":false,"fork":false,"pushed_at":"2025-04-06T11:20:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T02:54:28.779Z","etag":null,"topics":["console-log","console-logging","console-logs","javascript","js","logs","logs-remover","regex","replace","replacer","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-04-06T11:11:09.000Z","updated_at":"2025-04-06T11:20:56.000Z","dependencies_parsed_at":"2025-04-09T04:13:33.413Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/js-logs-remover-rust","commit_stats":null,"previous_names":["basemax/js-logs-remover-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/js-logs-remover-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fjs-logs-remover-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fjs-logs-remover-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fjs-logs-remover-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fjs-logs-remover-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/js-logs-remover-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fjs-logs-remover-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270082356,"owners_count":24523714,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["console-log","console-logging","console-logs","javascript","js","logs","logs-remover","regex","replace","replacer","rust"],"created_at":"2025-04-09T06:22:07.745Z","updated_at":"2026-05-19T04:02:51.202Z","avatar_url":"https://github.com/BaseMax.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-logs-remover in Rust\n\n`js-logs-remover` is a command-line utility written in Rust that removes specified `console` logging methods (e.g., `console.log()`, `console.error()`) from JavaScript/TypeScript files within a directory. This tool is useful for cleaning up log statements before deploying or publishing code.\n\n## Features\n\n- Removes specified `console` methods from JavaScript, TypeScript, JSX, and TSX files.\n- Processes files recursively within directories, excluding certain common directories such as `node_modules`, `.git`, `dist`, and `build`.\n- Supports both specified log methods and a global \"all\" option to remove all defined `console` methods.\n\n## Installation\n\nTo install `js-logs-remover`, you must have Rust installed on your machine.\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/BaseMax/js-logs-remover-rust.git\n   ```\n\n2. Navigate to the directory:\n\n   ```bash\n   cd js-logs-remover-rust\n   ```\n\n3. Build the Rust application:\n\n   ```bash\n   cargo build --release\n   ```\n\nAfter building, you will have a js-logs-remover binary in the project directory.\n\n```\ntarget\n├── debug\n└── release\n    └── js-logs-remover.exe\n```\n\n## Usage\n\nRun the tool from the command line:\n\n```bash\n$ js-logs-remover [path] [log-methods]\n```\n\n`[path]`: The directory or file path where you want to remove the logs from. If no path is provided, it defaults to the current directory (.).\n\n`[log-methods]`: A comma-separated list of console methods you want to remove (e.g., log,error,warn). If you specify all, it will remove all known console methods.\n\n## Example Usage\n\nRemove specific console methods: To remove console.log and console.warn from all .js, .ts, .jsx, and .tsx files within the src directory:\n\n```bash\n$ js-logs-remover src log,warn\n```\n\nRemove all console methods: To remove all console methods (like console.log, console.error, etc.) from all files in the src directory:\n\n```bash\n$ js-logs-remover src all\n```\n\nProcess the current directory: To process the current directory and remove console.log:\n\n```bash\n$ js-logs-remover . log\n```\n\n### Excluded Directories\n\nThe following directories are automatically excluded from processing:\n\n- node_modules\n- .git\n- dist\n- build\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Copyright\n\n© 2025 Max Base. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fjs-logs-remover-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fjs-logs-remover-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fjs-logs-remover-rust/lists"}