HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm search — Search for packages in the `npm` registry. More information: <https://docs.npmjs.com/cli/npm-search/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandnpmnpm searchsearchcliforpackages

Problem

How to use the npm search command: Search for packages in the npm registry. More information: <https://docs.npmjs.com/cli/npm-search/>.

Solution

npm search — Search for packages in the npm registry. More information: <https://docs.npmjs.com/cli/npm-search/>.

Search for a package by name:
npm {{[s|search]}} {{package}}


Search for packages by a specific keyword:
npm {{[s|search]}} {{keyword}}


Search for packages, including detailed information (e.g., description, author, version):
npm {{[s|search]}} {{package}} --long


Search for packages maintained by a specific author:
npm {{[s|search]}} --author {{author}}


Search for packages with a specific organization:
npm {{[s|search]}} --scope {{organization}}


Search for packages with a specific combination of terms:
npm {{[s|search]}} {{term1 term2 ...}}

Code Snippets

Search for a package by name

npm {{[s|search]}} {{package}}

Search for packages by a specific keyword

npm {{[s|search]}} {{keyword}}

Search for packages, including detailed information (e.g., description, author, version)

npm {{[s|search]}} {{package}} --long

Search for packages maintained by a specific author

npm {{[s|search]}} --author {{author}}

Search for packages with a specific organization

npm {{[s|search]}} --scope {{organization}}

Context

tldr-pages: common/npm search

Revisions (0)

No revisions yet.