npm run script with arguments from command line code example
Example 1: npm run script with arguments
$ PORT=8080 npm start
Example 2: npm run script with arguments
"start": "node ./script.js server $PORT"
$ PORT=8080 npm start
"start": "node ./script.js server $PORT"