1.0.5 • Published 2 years ago

nv-cli-expt v1.0.5

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

nv-cli-expt

  • nv-cli-expt
  • simple cli tool
  • quickly generate module.exports

install

  • npm install nv-cli-expt -g

usage

    Usage: nv_cli_expt [options] 
    Options:
        -p, --props          exported as props
        -g, --getters        exported as getters
        -h, --help           usage

example

    # nv_cli_expt -p  creat_dag load_dag_from_bp broadcast_to_down broadcast_to_up -g down_stream_ up_stream_

    const OD   = Object.defineProperty;
    const __ME = {
        creat_dag,
        load_dag_from_bp,
        broadcast_to_down,
        broadcast_to_up,
    }

    OD(__ME,"down_stream_",{get:function(){return(down_stream_)}});
    OD(__ME,"up_stream_"  ,{get:function(){return(up_stream_  )}});

    module.exports = __ME;             

LICENSE

  • ISC