Impress your colleagues with these NPM tricks

Piero Borrelli
Oct 14, 2019 · 4 min read
Image for post
Image for post
Photo by Paul Esch-Laurent on Unsplash

Just like anyone else, developers enjoy knowing some little tricks to show to their colleagues or friends. Today, I have decided to write about some of these keyboard magic that you can use when working with the Node Package Manager (NPM). These won’t only impress you and the people around you, but will also make your workflow definitely faster and more concise. So now that we made this little premise, let’s start to analyze these tricks!

#1 Package initialization

Image for post
Image for post

#2 Opening a package’s homepage

Image for post
Image for post

#3 Opening a package’s GitHub Repository

Image for post
Image for post

#4 List all the installed packages

Image for post
Image for post

#5 List the available scripts

Image for post
Image for post

#6 Check packages that are not declared in package.json

Image for post
Image for post

#7 Bump a package version

Image for post
Image for post

#8 Running a test

Image for post
Image for post

Bonus commands

Package installation

Image for post
Image for post

Global package installation

Image for post
Image for post

Package installation + saving as a dev dependency

Image for post
Image for post

Package installation + saving as a dependency

Image for post
Image for post

Conclusion

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Piero Borrelli

Written by

Software developer for the Wifi industry. Burning keyboards with JavaScript code. Defenceless talking about the ups and downs of the developer’s life.

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Piero Borrelli

Written by

Software developer for the Wifi industry. Burning keyboards with JavaScript code. Defenceless talking about the ups and downs of the developer’s life.

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store