Sitemap
JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Member-only story

8 Useful Npm Coding Techniques That You Should Use

I wish I had known about them sooner

4 min readAug 28, 2024

--

Press enter or click to view image in full size
Photo by Atikh Bana on Unsplash

1.# Open a package’s documentation page

My friends, it would have saved me a lot of time if I had known this trick earlier.

In the past, when I wanted to query the usage documentation of lodash, I always searched for its address through google.

In fact, npm can help you achieve this goal quickly. You only need to run npm docs xxx to quickly open xxx's documents

npm docs [package-name] // npm docs lodash

2.# Open a package’s GitHub repo

As a programmer, I guess you also like github, which is a treasure base for programmers.

Sometimes I want to know the source code of a package, can I only search for the package name on github?

The answer is no, npm can help you quickly open a package's GitHub repo

npm repo [package-name] // npm repo lodash

Interested in scaling your software startup? Check out Circuit.

3.# Check packages for outdated dependencies

--

--

fatfish
fatfish

Written by fatfish

Hi friends, I am a front-end engineer from Alibaba, let’s code happily together.

JavaScript in Plain English
JavaScript in Plain English

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.