Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs get param cli

// if cli comman is
// node index.js 1 2 3
const arguments = process.argv.slice(2); // array ['1', '2', '3']
 
PREVIOUS NEXT
Tagged: #nodejs #param #cli
ADD COMMENT
Topic
Name
5+2 =