Skip to content

mikaelbr/rm-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codemod for removing debugger;

NPM version Build Status

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      (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

MIT License

About

Simplest codemod you can think of, but is still handy: Remove all `debugger;` statements from your code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published