1.0.0 • Published 10 years ago
rm-debugger v1.0.0
Codemod for removing debugger;
Simplest codemod you can think of,
but is still handy: Remove all debugger; statements from your code.
You could also do a regex replace for this, but it wouldn't be as stable
and predictable and is much likely to miss something, all though removing
debugger; seems pretty straight forward.
Usage from terminal
Install using
npm install -g rm-debuggerRun:
rm-debugger ./my/srcUsage
Usage: rm-debugger <path>... [options]
path Files or directory to transform
Options:
-c, --cpus (all by default) Determines the number of processes started.
-v, --verbose Show more information about the transform process [0]
-d, --dry Dry run (no changes are made to files)
-p, --print Print output, useful for development
--babel Apply Babel to transform files [true]
--extensions File extensions the transform file should be applied to [js]Options same as running jscodeshift directly,
but with a predefined codemod.
License
1.0.0
10 years ago