Introducing npx: an npm package runner
Kat Marchán
2.8K37

This is a nice tool, and I think I would definitely use it when testing a new script before adding it to run-scripts, but it seems to be encouraging people to use npx mocha instead of npm run test . The latter is better because it acts as the test interface, and mocha is the implementation detail. I’m only saying it’s encouraging because npx is installed alongside npm automatically, which means people are now going to assume others have it installed and will not bother adding run-scripts. I would have preferred this tool to be installed manually by the end-user.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.