How do I pass command line arguments to a Node.js program?

The arguments are stored in process.argv

process.argv is an array containing the command line arguments. The first element will be ‘node’, the second element will be the name of the JavaScript file. The next elements will be any additional command line arguments.

S1

S2