mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
npm-search: add page (#14302)
* Create npm-search.md * Update pages/common/npm-search.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/common/npm-search.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
da2d00fb76
commit
26cf5e7100
1 changed files with 28 additions and 0 deletions
28
pages/common/npm-search.md
Normal file
28
pages/common/npm-search.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# npm search
|
||||
|
||||
> Search for packages in the `npm` registry.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-search>.
|
||||
|
||||
- Search for a package by name:
|
||||
|
||||
`npm search {{package}}`
|
||||
|
||||
- Search for packages by a specific keyword:
|
||||
|
||||
`npm search {{keyword}}`
|
||||
|
||||
- Search for packages, including detailed information (e.g., description, author, version):
|
||||
|
||||
`npm search {{package}} --long`
|
||||
|
||||
- Search for packages maintained by a specific author:
|
||||
|
||||
`npm search --author {{author}}`
|
||||
|
||||
- Search for packages with a specific organization:
|
||||
|
||||
`npm search --scope {{organization}}`
|
||||
|
||||
- Search for packages with a specific combination of terms:
|
||||
|
||||
`npm search {{term1 term2 ...}}`
|
Loading…
Add table
Reference in a new issue