get args nodejs

JavaScript
var args = process.argv.slice(2);
Source

Also in JavaScript: