nv-cli-json-to-cstruct
v1.0.14
Published
nv-cli-json-to-cstruct ======================= - cli-tool , generate big cstruct for test
Downloads
4
Readme
nv-cli-json-to-cstruct
- cli-tool , generate big cstruct for test
- its SLOW , should only be used in cli/repl, dont use it in release-code
install
- npm install nv-cli-json-to-cstruct -g
usage
Usage: nv_cli_j2c_convert [options]
Options:
-n, --namespace namespace, default my_jshape
-i, --input input string ,default stdin
-o, --output output string,default stdout
-h, --help usage
Usage: nv_cli_j2c_random [options]
Options:
-s, --estimated_maxsz bytesize hint, default 4096
-w, --workdir workdir ,default /tmp
-h, --help usage
Usage: nv_cli_j2c_random_main [options]
Options:
-s, --estimated_maxsz bytesize hint, default 4096
-w, --workdir workdir ,default /tmp
-h, --help usage
example
#nv_cli_j2c_convert
{ a:100, b:["s","s"]}
// press CTRL+D
will show a BIG c-struct
#nv_cli_j2c_random -s 8192
# node random-cli.js -s 8192 > tst.cc
# ls -l | egrep tst.cc
# 938395 Mar 20 11:06 tst.cc
# node random-main-cli.js -s 16384
\"aÿ我𝑒 is not valid idname,skip
{
path: '/tmp/hammertoe_indwell-main.cc',
valid_node_cnt: 851,
file_size: 2074622,
compile_cost_time: 5.176,
run_cost_time: 0.035
}
METHODS
APIS
LICENSE
- ISC