mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:02:18 +02:00
ncu: add use cases, use long options (#11555)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Juri Dispan <juri.dispan@posteo.net> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
6b7708d274
commit
ef5c47d934
1 changed files with 16 additions and 4 deletions
|
@ -10,16 +10,28 @@
|
|||
|
||||
- List outdated global npm packages:
|
||||
|
||||
`ncu -g`
|
||||
`ncu --global`
|
||||
|
||||
- Upgrade all dependencies in the current directory:
|
||||
|
||||
`ncu -u`
|
||||
`ncu --upgrade`
|
||||
|
||||
- Interactively upgrade dependencies in the current directory:
|
||||
|
||||
`ncu -i`
|
||||
`ncu --interactive`
|
||||
|
||||
- List outdated dependencies up to the highest minor version:
|
||||
|
||||
`ncu --target {{minor}}`
|
||||
|
||||
- List outdated dependencies that match a keyword or regular expression:
|
||||
|
||||
`ncu --filter {{keyword|/regex/}}`
|
||||
|
||||
- List only a specific section of outdated dependencies:
|
||||
|
||||
`ncu --dep {{dev|optional|peer|prod|packageManager}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ncu -h`
|
||||
`ncu --help`
|
||||
|
|
Loading…
Add table
Reference in a new issue