nv-cli-ctrl-code
v1.0.5
Published
nv-cli-ctrl-code ======================= - just simle functions to concat some string - let you generate code in cli-tools - no need to using parser/generator (parser/generator is NOT good for small-and-simple-code-template)
Downloads
3
Readme
nv-cli-ctrl-code
- just simle functions to concat some string
- let you generate code in cli-tools
- no need to using parser/generator (parser/generator is NOT good for small-and-simple-code-template)
install
- npm install nv-cli-ctrl-code
usage
const x = require("nv-cli-ctrl-code");
example
> x._if()
'if (true) {'
>
>
> x._if(1)
' if (true) {'
> x._if(2)
' if (true) {'
>
> x._if(3)
' if (true) {'
>
>
> x._if("/*comment*/")
'/*comment*/if (true) {'
>
METHODS
APIS
{
_rbc: [Function: _rbc],
_if: [Function: _if],
_elif: [Function: _elif],
_el: [Function: _el],
_whl: [Function: _whl],
_lbl_whl: [Function: _lbl_whl],
_swi: [Function: _swi],
_lbl_swi: [Function: _lbl_swi],
_case: [Function: _case],
_try: [Function: _try],
_catch: [Function: _catch],
_final: [Function: _final],
_for: [Function: _for],
_forin: [Function: _forin],
_forof: [Function: _forof],
_for_await_of: [Function: _for_await_of],
_cls: [Function: _cls],
_ctor: [Function: _ctor],
_mthd_sfunc: [Function: _mthd_sfunc],
_mthd_afunc: [Function: _mthd_afunc],
_mthd_sgen: [Function: _mthd_sgen],
_mthd_agen: [Function: _mthd_agen],
_getter: [Function: _getter],
_setter: [Function: _setter],
_sfunc: [Function: _sfunc],
_afunc: [Function: _afunc],
_sgen: [Function: _sgen],
_agen: [Function: _agen],
_slmbd: [Function: _slmbd],
_almbd: [Function: _almbd],
_lbk: [Function: _lbk],
_rbk: [Function: _rbk],
_lp: [Function: _lp],
_rp: [Function: _rp],
_pair: [Function: _pair],
_ter: [Function: _ter],
_let: [Function: _let],
_let_many: [Function: _let_many],
_let_asgn: [Function: _let_asgn],
_let_asgn_many: [Function: _let_asgn_many],
_const: [Function: _const],
_const_many: [Function: _const_many],
_const_asgn: [Function: _const_asgn],
_const_asgn_many: [Function: _const_asgn_many]
}
LICENSE
- ISC