mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 04:44:12 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/npm-search
Normal file
33
tldr/npm-search
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 ...}}`
|
||||
@@ -36,7 +36,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enter normal mode and save (write) the file, and quit:
|
||||
|
||||
`{{<Esc>ZZ|<Esc>:wq<Enter>}}`
|
||||
`{{<Esc>ZZ|<Esc>:x<Enter>|<Esc>:wq<Enter>}}`
|
||||
|
||||
- Quit without saving:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user