Saturday, April 18, 2020

npx - Installation-less command execution

You don't want to install some command but you want to use it on the fly! Well, npx comes to your rescue: https://nodejs.dev/the-npx-nodejs-package-runner

For a quick understanding of differences between npm and npx, read this: https://stackoverflow.com/questions/50605219/difference-between-npx-and-npm

Also read the interesting facts about Node.js: https://nodejs.dev/a-brief-history-of-nodejs

Read thru this article that would help better understand an executable global module: https://medium.com/jspoint/creating-cli-executable-global-npm-module-5ef734febe32

No comments:

Post a Comment