Search the help pages

npm.commands.helpSearch(args, [silent,] callback)

This command is rarely useful, but it exists in the rare case that it is.

This command takes an array of search terms and returns the help pages that match in order of best match.

If there is only one match, then npm displays that help section. If there are multiple results, the results are printed to the screen formatted and the array of results is returned. Each result is an object with these properties:

The silent parameter is not necessary not used, but it may in the future.

Last modified August 20, 2015           Found a typo? Send a pull request!

Getting Started

Private Modules

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page