Pass command-line arguments to NPM script
12 June 2022 (Updated 12 July 2022)
Syntax
Example
Suppose you have a test
script in your package.json
:
And you want to run npm run test
but with additional arguments. Something like:
You can do this with:
Tagged:
NPM
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment