Answers for "node params command line"

5

nodejs command line arguments

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

nodejs get param cli

// if cli comman is
// node index.js 1 2 3
const arguments = process.argv.slice(2); // array ['1', '2', '3']
Posted by: Guest on March-21-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language