nv-cli-creat-kw-state-def
v1.0.4
Published
nv-cli-creat-kw-state-def ========== - cli tool - creat a simple static .js file of many consts - it is used to test nvlang' fast tok tool, normally useless
Downloads
2
Readme
nv-cli-creat-kw-state-def
- cli tool
- creat a simple static .js file of many consts
- it is used to test nvlang' fast tok tool, normally useless
install
- npm install nv-cli-creat-kw-state-def -g
usage
Usage: nv_cli_creat_kw_state_def [options]
Options:
-s, --seperators seperators
-f, --filename filename default kw-state-def
-h, --help usage
Usage: nv_cli_creat_js_kw_split_tbl [options]
Options:
-l, --list list js keywords
-f, --filename filename default js-kw-state-def
-h, --help usage
example
# nv_cli_creat_kw_state_def -s green blue red
# cat kw-state-def.js
const kw$_ = 1;
const kw$b_ = 2;
const kw$bl_ = 3;
const kw$blu_ = 4;
const kw$blue = 5;
const kw$g_ = 6;
const kw$gr_ = 7;
const kw$gre_ = 8;
const kw$gree_ = 9;
const kw$green = 10;
const kw$r_ = 11;
const kw$re_ = 12;
const kw$red = 13;
const TRANSFERS = [
["kw$_",98,"kw$b_"],
["kw$b_",108,"kw$bl_"],
["kw$bl_",117,"kw$blu_"],
["kw$blu_",101,"kw$blue"],
["kw$_",103,"kw$g_"],
["kw$g_",114,"kw$gr_"],
["kw$gr_",101,"kw$gre_"],
["kw$gre_",101,"kw$gree_"],
["kw$gree_",110,"kw$green"],
["kw$_",114,"kw$r_"],
["kw$r_",101,"kw$re_"],
["kw$re_",100,"kw$red"],
];
module.exports = {
kw$_ ,
kw$b_ ,
kw$bl_ ,
kw$blu_ ,
kw$blue ,
kw$g_ ,
kw$gr_ ,
kw$gre_ ,
kw$gree_ ,
kw$green ,
kw$r_ ,
kw$re_ ,
kw$red ,
}
Object.defineProperty(module.exports,"TRANSFERS",{get: function(){return(TRANSFERS)}});
LICENSE
- ISC