Member-only story
8 Useful Npm Coding Techniques That You Should Use
I wish I had known about them sooner
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 lodash2.# 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










