Remove logs from Javascript files easily
npm install nologsnpm install -g nologsGeneral Usage
``
Usage: nologs [options] [command]
Commands:
file [options] [path] Give the directory to remove console.
dir [options] [dir] Give the directory to remove console.log
here [options] takes the current directory to remove logs
Options:
-h, --help Output usage information
-V, --version Output the version number
-o, --overwrite Original files will be overwritten with output
-i, --ignore Ignore files from gitignore
`
To remove logs from file
``
$ nologs file filename.js
To remove logs from directory
``
$ nologs dir /path/to/dir -i ` flag to ignore files or folders according to .gitignore
Incase removing logs from a git repository, use the