Learn about the npx Package Runner

Last week my latest Egghead.io course was launched entitled, Execute npm Package Binaries with the npx Package Runner.

npx is a tool that comes baked in npm (if you have version 5.2 or above), that you may or may not know about. Itโ€™s a handy little utility that enables you to play around with node packages in a way that wasnโ€™t really easy before.

I find myself using npx all the time. Itโ€™s a tool I use most days.

๐Ÿ†“ The course is currently free to watch until Thursday November 15th. So, watch today!

Lessons

The following lessons are included in the npx course. For those that regularly use npm and npm scripts, lessons 1 and 2 are big improvements to your command-line workflow. Lessons 3 through 7 focus on uncovering some lesser known features of npx that I find are useful.

  1. Use npx to run locally installed node modules
  2. Use npx to Temporarily Install and Invoke a Package from npm
  3. Test Different Node Module Versions with npx
  4. Use npx to run commands with different Node.js versions
  5. Execute npx commands with $npm_ Environment Variables
  6. Execute Code from a Remote GitHub Branch with npx
  7. Use npx to execute code from a GitHub gist

Having Fun with npx

As I teach npx I also try to keep things fun and faced paced. The following GIF shows a small clip from the 2nd lesson, Use npx to Temporarily Install and Invoke a Package from npm, where I experiment with various packages without installing them globally.

Who knew devpun, cowsay, and lolcatjs could be so fun!?!

Course Reviews

Some reviews have already started coming in for this course. The following is a taste of what some are saying thus far.

โ€œSo many great little tips! Plus it was short and easily-digestible. Lots of this is immediately-applicable to our team, and lots of it is fun to know.โ€

โ€œI seriously had no idea *npx was capable of so much. Nicely done!โ€*

โ€œElijahโ€™s instructions are clear, sufficiently detailed and unambigous. I canโ€™t wait to put my learning to good use. Thanks a lot for this wonderful course.โ€

โ€œThe course contains a lot of useful information and the presentation of the instructor is engaging. Thank you!โ€

Conclusion

I hope you enjoy the course and find something useful that you can start using in your projects.

If you enjoyed this post, please consider sharing it with others via the following Twitter or Reddit buttons. I also have a YouTube Channel with free web development videos that you are welcome to watch and/or subscribe. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!

Reddit