Namespace, Primitive, Method

    rm-debugger

    1.0.0 • Public • Published

    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

    Install

    npm i rm-debugger

    DownloadsWeekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • mikaelb