Return to Snippet

Revision: 38000
at December 22, 2010 01:38 by BenClayton


Initial Code
// run with node myFile.js arg1 arg2
process.argv[2]; // will be 'arg1'
process.argv[3]; // will be 'arg2'

Initial URL

                                

Initial Description

                                

Initial Title
Node.js: Use command-line arguments

Initial Tags

                                

Initial Language
JavaScript