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!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.