node.js process.argv to accept 2 command line arguments and compare value code example Example: node run parameters var args = process.argv.slice(2);