nv-cli-find-undef
v1.0.7
Published
nv-cli-find-undef ===================== - cli-tool - find undefined in js/ts/json - this use RegExp + parser, so its slow IF too many files in path-dir, such as node\_modules
Downloads
4
Readme
nv-cli-find-undef
- cli-tool
- find undefined in js/ts/json
- this use RegExp + parser, so its slow IF too many files in path-dir, such as node_modules
install
- npm install nv-cli-find-undef -g
usage
Usage: nv_find_undef [options]
Options:
-p, --path path to search ,default ./
-u, --suffixes default js ts json
-h, --help usage
example
# cat TEST/tst.js
function tst0(a) {
let undefined = 9999;
return(undefined +1)
}
let b = undefined;
function tst1(a) {
a= undefined;
return(a);
}
#nv-cli-find-undef# nv_cli_find_undef -p "./TEST"
/mnt/sda3/NV6-/nvcli/pkgs/JSCODING/nv-cli-find-undef/TEST/tst.js
Position { line: 9, column: 8 } Position { line: 9, column: 17 }
b = undefined
==================
/mnt/sda3/NV6-/nvcli/pkgs/JSCODING/nv-cli-find-undef/TEST/tst.js
Position { line: 13, column: 6 } Position { line: 13, column: 15 }
a = undefined
==================
root@dli:/mnt/sda3/NV6-/nvcli/pkgs/JSCODING/nv-cli-find-undef#
LICENSE
- ISC