coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.83k stars 356 forks source link

Command line parameter #312

Closed whitedxz closed 2 years ago

whitedxz commented 2 years ago

Sometimes we want to pass some argument on the command line, something like "node nw.js port=5000", how can I pass this argument to the entry file (main.js) after the argument is parsed?

coreybutler commented 2 years ago

See the README. https://github.com/coreybutler/node-windows#command-line-options