0.0.3 • Published 2 years ago

nv-cli-rplc-id v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

nv-cli-rplc-id

  • cli-tool
  • replace idnetifier name in js/ts/json

install

  • npm install nv-cli-rplc-id -g

usage

    Usage: nv_rplc_id [options]
    Options:
        -i, --input         input string ,default stdin
        -o, --output        output string,default stdout
        -s, --string        identifier name to be replaced,exact match
        -r, --regex         identifier name regexp pattern
        -w, --with          replace the matched identifier name with,must be valid
        -h, --help          usage

example

    nv-cli-rplc-id# nv_rplc_id -s bb -w BB

    function tst() {
        let bb;
        {
            bb = 100
        }
        return(bb)
    }

    //press ctrl+D

    function tst() {
      let BB;
      {
        BB = 100;
      }
      return BB;
    }

LICENSE

  • ISC