NPM useful commands

Here’s a list of tips and tricks on npm usage.

// Install the latest lib available for a given module

$ npm install my_lib@next

// Access information on a specific lib
$ npm show my_lib

$ npm show my_lib {what}

Where "what" is a key on the object returned in the above live
For example: npm show my_lib versions

$ npm show my_lib {what} --json

To get the output in JSON format


Leave a Reply

Close Menu