Answers for "how to pass argument when running node.js file using command prompt"

5

nodejs command line arguments

var myArgs = process.argv.slice(2);
console.log('myArgs: ', myArgs);
Posted by: Guest on July-12-2021

Code answers related to "how to pass argument when running node.js file using command prompt"

Code answers related to "Javascript"

Browse Popular Code Answers by Language