Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

process.argv

>>node myprogram.js firstarg secondarg

process.argv[0] == "path/to/node"

process.argv[1] == "path/to/myprogram.js"

process.argv[2] == "firstarg"

process.argv[3] == "secondarg"

//process.argv[0] same as process.argv.slice(0)
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+9 =