nv-cli-show-json
v1.0.1
Published
nv-cli-show-json ==========
Readme
nv-cli-show-json
install
- npm install nv-cli-show-json -g
usage
Usage: nv_cli_show_json [options]
Options:
-i, --input input string ,default stdin
-o, --output output string,default stdout
-l, --max_unit_cnt_each_line max element count each line,default 4
-d, --max_depth max expand depth,default 4
-C, --disable_color disable color, default false
-I, --indent_unit indent white-space count,default 4
-h, --help usageexample
#nv_cli_show_json -l 4 -d 2
[ 1,2,3,4,[1,[1,2,3,4],3,4]]
//press ctrl+D
[
1, 2, 3, 4,
[
1, [1, 2, 3, 4], 3, 4
]
]
#nv_cli_show_json -i package.json -l 1
{
"dependencies": {
"nv-cli-basic" : "^1.0.18",
"nv-cli-jfetch" : "^1.0.2",
"nv-cli-user" : "1.0.1",
"nv-facutil-pretty-stringify-json": "^1.0.0",
"nv-facutil-surl" : "^1.0.2",
"nv-file-sync-reader" : "^1.0.4",
"nv-server-simple-stream" : "^1.0.36",
"nv-string-basic" : "^1.0.51",
"nvison" : "^1.0.28"
},
"name" : "nv-cli-show-json",
"description" : "",
"version" : "1.0.1",
"main" : "index.js",
"scripts" : {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin" : {
"nv_cli_show_json": "cli.js"
},
"author" : "",
"license" : "ISC"
}
#nv_cli_show_json -i package.json -l 2
{
"dependencies": {
"nv-cli-basic" : "^1.0.18", "nv-cli-jfetch": "^1.0.2",
"nv-cli-user" : "1.0.1", "nv-facutil-pretty-stringify-json": "^1.0.0",
"nv-facutil-surl" : "^1.0.2", "nv-file-sync-reader": "^1.0.4",
"nv-server-simple-stream" : "^1.0.36", "nv-string-basic": "^1.0.51",
"nvison" : "^1.0.28"
},
"name" : "nv-cli-show-json", "description": "",
"version" : "1.0.1", "main": "index.js",
"scripts" : {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin" : {
"nv_cli_show_json": "cli.js"
},
"author" : "", "license": "ISC"
}
#nv_cli_show_json -i package.json -l 3
{
"dependencies": {
"nv-cli-basic" : "^1.0.18", "nv-cli-jfetch": "^1.0.2", "nv-cli-user": "1.0.1",
"nv-facutil-pretty-stringify-json": "^1.0.0", "nv-facutil-surl": "^1.0.2", "nv-file-sync-reader": "^1.0.4",
"nv-server-simple-stream" : "^1.0.36", "nv-string-basic": "^1.0.51", "nvison": "^1.0.28"
},
"name" : "nv-cli-show-json", "description": "", "version": "1.0.1",
"main" : "index.js", "scripts": {"test": "echo \"Error: no test specified\" && exit 1"}, "bin": {"nv_cli_show_json": "cli.js"},
"author" : "", "license": "ISC"
}LICENSE
- ISC
