contents
node server.js
node-x server.js
execute | execute a script in that directory from anywhere |
multiple directories | create lists of directories then run scripts from those directories |
aliases | long commands that are used often can be aliased by short words |
cat | print the contents of a file to the console |
findstr | search in files for a word or list of words |
find | find a file |
ls | easily list the contents of a directory |
npm install node-x -g
node-x -version
c:/users/<user>/AppData/Roaming/npm/
node-x.cmd -version
npm uninstall http-file-upload -g
/work/tmp/script.js
the following would match
node-x script.js
node-x script*
node-x *ipt.js
node-x ?crip?.js
/work/dir1/script.js
/work/dir2/script.js
node-x script.js
node-x dir1/script.js
or
node-x 1/script.js
.js
.mjs
.cjs
script.js
can be called either as
node-x script.js
or
node-x script
add | <dir> | add <dir> to the list, |
rem |
<dir>
|
remove directory <dir> from list, if <dir> is not given the current directory is used |
list | dirs | display the current list of directories | |
files | display all files currently accessible | |
find | <file> | search of files for <file> |
regex | <exp> | search the directory list for files that match the regex |
cat | <file> | display the contents of <file> |
findstr | <valueN> | search for <value> within file list, multiple values supported |
clear | clear all configuration data | |
ls | <dir> | display the contents of directory <dir> |
del | <file> | delete <file> |
alias | <name> <value> | create alias <name> with <value>, value can be more than one space seperated values |
alias-rem | <name> | remove alias <name> |
config | <name> | switch to configuration <name>, without <name> lists available configurations |
config-add | <name> | add new default configuration <name> |
config-rem | <name> | remove configuration <name> |
config-info | <name> | display configuration info for <name> |
config-cur | display the current configuration information | |
config-rename | <name> | rename the current configuration |
h | help | display command line help | |
v | version | display the current program version |
script.js
node-x script.js
/work/scripts/
to the current configuration list
node-x add /work/scripts/
node-x add
/work/scripts/
to the current configuration list
node-x rem /work/scripts/
node-x rem
node-x list
node-x files
node-x find script.js
node-x cat script.js
node-x findstr <searchN>
server.js -p 4000 -cwd /work/www/ -ip 127.0.0.2
node-x alias server server.js -p 4000 -cwd /work/www/ -ip 127.0.0.2
node-x server
node-x alias-rem server
node-x config config-1
node-x config
node-x config-add config-2
node-x config-rem config-2
node-x config-info config-1
node-x config-cur
node-x config-rename test-configuration
node-x clear