shri-no-cli
v1.0.1
Published
A cli log remover tool
Readme
noconsole
A CLI tool to remove console.log statements from your codebase.
Installation
npm i shri-no-cliUsage
shri-no-cli <directory> [options]Options
-p, --pattern <pattern>- File pattern to match (default: "**/*.{js,jsx,ts,tsx}")-d, --dry-run- Show what would be removed without making changes
Examples
Remove console.log statements from all JavaScript files in the current directory:
shri-no-cli .Remove console.log statements from all TypeScript files in a specific directory:
shri-no-cli ./ --pattern "**/*.ts"Show what would be removed without making changes:
shri-no-cli . --dry-runFeatures
- Removes all types of console statements (log, debug, info, warn, error)
- Supports JavaScript and TypeScript files
- Ignores node_modules, dist, and build directories by default
- Provides a dry-run option to preview changes
- Shows a summary of removed statements
License
Apache-2.0
