debugger;
Codemod for removing
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-debugger
Run:
rm-debugger ./my/src
Usage
Usage: rm-debugger <path>... [options] path Files or directory to transform Options: -c, --cpus Determines the number of processes started. -v, --verbose Show more information about the transform process [0] -d, --dry Dry run -p, --print Print output, useful
Options same as running jscodeshift
directly,
but with a predefined codemod.