Because sed is messy: remove console logs the AST way.
JavaScript
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
LICENSE
README.md
logremover.js
package.json
remove-console-logs
test.js

README.md

What?

This is just a small tool which parses your JS and replaces any console.* calls with 0. It uses falafel to walk the AST. Falafel uses esprima to parse your JS. Finally, optimist is used for cli argument parsing.

How do I get it?

Just running npm install -g remove-console-logs should work.

How do I use it?

See remove-console-logs --help.