/remove-console-logs

Because sed is messy: remove console logs the AST way.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

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 acorn to parse your JS. Finally, yargs 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.