-
-
Notifications
You must be signed in to change notification settings - Fork 105
Benefit of this over npm run? #235
Comments
It's about running a package that is not part of any repo or project.
I use it for things that I don't want globally installed nor part of a specific project. I've used it for parsing and generating documentation from markdown files for distribution to customers. That's an occasional task for which the package being part of the repo would significantly bloat things, but I also don't want to install the package globally on any machine I might be using. There's one package in particular I've used that would slow down There's a particularly good tutorial on egghead.io about npx that I believe is at least partially free. I'm using and describing here just a small fraction of its power, but still appreciate it (and fingers crossed that the project isn't abandoned: #223.) |
It sounds to me this library crosses over a bit with I think a lot of libraries could benefit from not listing huge unnecessary dependencies though, but again surely that's something that |
I use npx to:
E.g., I'll use it to |
😕 why wouldn't it make sense to have that in |
Of course the package is a dev dependency. But the script to init isn't. |
The readme seems to allude to the main difference being that it will automatically install the needed dependencies to run a command. Wouldn't the dev dependencies etc already be listed and installed in
package.json
, anyway? It would be good if the readme can be a bit more clear in what the actual benefit of using this has over just usingnpm i && npm run
The text was updated successfully, but these errors were encountered: