1.0.3 • Published 2 years ago

nv-cli-many-gvar v1.0.3

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

nv-cli-many-gvar

  • nv-cli-many-gvar
  • simple cli tool
  • quickly generate many global-var/let/const OR global-properties

install

  • npm install nv-cli-many-gvar -g

usage

    Usage: nv_cli_mgv [options]
    Options:
        -v, --var             global var names
        -l, --let             global let names
        -c, --const           global const names
        -s, --str_prop        globalThis[prop]
        -y, --sym_prop        globalThis[Symbol(prop)]
        -i, --indent          indent,default=0
        -h, --help            usage

example

    # nv_cli_mgv -v VA VB VC -l LD LE LF -c CG CH CI -s "# J" GPK GPL -y sym@m "sym n" 
    /*--------------------------*/
    const _G = globalThis;
    const _Y = Symbol;

    //nv::gvars
    var    VA = undefined;
    var    VB = undefined;
    var    VC = undefined;

    //nv::glets
    let    LD = undefined;
    let    LE = undefined;
    let    LF = undefined;

    //nv::gconsts
    const  CG = undefined;
    const  CH = undefined;
    const  CI = undefined;

    //nv::gprops
    _G["# J"] = undefined;
    _G["GPK"] = undefined;
    _G["GPL"] = undefined;

    //nv::gsym_props
    const ___$Ig等等$sym$QA等等$m$Ig等等$ = _Y("sym@m");
    const ___$Ig等等$sym$IA等等$n$Ig等等$ = _Y("sym n");
    _G[___$Ig等等$sym$QA等等$m$Ig等等$]   = undefined;
    _G[___$Ig等等$sym$IA等等$n$Ig等等$]   = undefined;

    /*----------------------------*/

LICENSE

  • ISC