/ Published in: JavaScript
Expand |
Embed | Plain Text
// run with node myFile.js arg1 arg2 process.argv[2]; // will be 'arg1' process.argv[3]; // will be 'arg2'
You need to login to post a comment.
BenClayton on 12/22/10
1 person have marked this snippet as a favorite
// run with node myFile.js arg1 arg2 process.argv[2]; // will be 'arg1' process.argv[3]; // will be 'arg2'
You need to login to post a comment.