nodejs get arguments from command line code example
Example 1: node run parameters
var args = process.argv.slice(2);
Example 2: node get args
console.log(process.argv);
var args = process.argv.slice(2);
console.log(process.argv);