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