Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

npm script with arguments

"start": "node ./script.js server $PORT"
And then from the command-line:

$ PORT=8080 npm start
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #npm #script #arguments
ADD COMMENT
Topic
Name
4+7 =