npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Make custom NPM command

hi! I want to make a npm command in package.json with a user input (argument) in the middle of a command. How can I do that? This didnt work :)

"scripts": {
"test-service":"node_modules/.bin/mocha --opts test/mocha.single.opts test/services/' + $* + '.test.js"

Thank you!