nv-cli-single-jsval-srv
v1.0.8
Published
nv-cli-single-jsval-srv ==========
Downloads
12
Readme
nv-cli-single-jsval-srv
install
- npm install nv-cli-single-jsval-srv -g
usage
Usage: nv_cli_single_jsval_srv [options]
Options:
-w, --wkdir workdir default ./___wkdir___
-u, --using_usock using usock? default false
-p, --port listen port default 61888
-I, --worker_poll_interval worker_poll_interval,default 1000 ms
-n, --ngx_user nginx user name, default www-data
-h, --help usage
Usage: nv_cli_single_jsval_client [options]
Options:
-u, --url url such as : http://127.0.0.1:61888
-a, --action action main | bwapi | all | get | set
-d, --depth depth, for all action use ,default 2
-k, --key_path value key path, -a get -k .... OR -a set -k ... -v ...
-v, --value_file_path for set action using, file path
-h, --help usage
========================
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a main -> HTML
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a bwapi -> JS
action: all
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a all -d 1
{
___nv_cli_single_jsval_srv___: [
'___nv_cli_single_jsval_srv___',
'sock',
null,
'/mnt/sdb/NV5/NV5_/nvcli/pkgs/PROJ/nv-cli-single-jsval-srv/___wkdir___/___nv_cli_single_jsval_srv___'
],
route0: { package: [Array] },
route1: { w: [Array] },
route2: { map: [Array] }
}
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a all -d 2
{
....
route0: {
package: [
'package.json',
'file',
[Object],
'/mnt/sdb/NV5/NV5_/nvcli/pkgs/PROJ/nv-cli-single-jsval-srv/___wkdir___/route0/package.json'
]
},
....
}
action: get
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a get -k "/mnt/sdb/NV5/NV5_/nvcli/pkgs/PROJ/nv-cli-single-jsval-srv/___wkdir___/route0/package.json" -d 0
{
dependencies: [Object],
name: 'nv-cli-single-jsval-srv',
description: '',
version: '1.0.1',
main: 'index.js',
scripts: [Object],
bin: [Object],
author: '',
license: 'ISC'
}
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a get -k "/mnt/sdb/NV5/NV5_/nvcli/pkgs/PROJ/nv-cli-single-jsval-srv/___wkdir___/route2/map.v8ser" -d 2
Set(3) { 11, 22, 'sssss' }
action: set [v8ser is same as v8.serialize]
nv_cli_single_jsval_client -u http://127.0.0.1:61888 -a set -k "/mnt/sdb/NV5/NV5_/nvcli/pkgs/PROJ/nv-cli-single-jsval-srv/___wkdir___/route2/map.v8ser" -v "./map.v8ser"
example
LICENSE
- ISC