| | #1 |
| New Warrior Member Join Date: 2022 Location: India
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
|
The scripts portion of my package.json currently looks like this: Code: "scripts": {
"start": "node ./script.js server"
} However, I would like to be able to run something like npm start 8080 and have the argument(s) passed to script.js (e.g. npm start 8080 => nodes ./script.js server 8080). Is this conceivable? |
| |
| | #2 |
| Valina Join Date: 2022 Location: pakistan
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
|
The 'vumper' package takes in a command line argument (such as 'dv'). What I would like to be able to do is have a command that runs both of these in succession.
|
| |
|
| Bookmarks |
| Tags |
| arguments, command, line, npm, script, sending |
| |