Skip to main content

Passing and accessing commandline arguments in Node.js

process.argv

will deliver

0: the interpreter, i.e. `node`
1: the script
2: arg1
3: arg2
... etc