how to pass argument to a js file through command line code example Example: node run parameters var args = process.argv.slice(2);