[email protected] is an extra binary named
npxis a tool intended to help round out the experience of using packages from the NPM registry — the same way
npmmakes it super easy to install and manage dependencies hosted on the registry,
npxmakes it easy to use CLI tools and other executables hosted on the registry.
Above that it’s smart too:
<command>isn’t already in your
$PATHwill automatically install a package with that name from the NPM registry for you, and invoke it. When it’s done, the installed package won’t be anywhere in your globals, so you won’t have to worry about pollution in the long-term.