mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 23:55:47 +02:00
npm-star: add page (#14531)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
parent
e3380fe23b
commit
698bdb1a3d
1 changed files with 36 additions and 0 deletions
36
pages/common/npm-star.md
Normal file
36
pages/common/npm-star.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# npm star
|
||||
|
||||
> Mark a package as favorite.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-star>.
|
||||
|
||||
- Star a public package from the default registry:
|
||||
|
||||
`npm star {{package_name}}`
|
||||
|
||||
- Star a package within a specific scope:
|
||||
|
||||
`npm star @{{scope}}/{{package_name}}`
|
||||
|
||||
- Star a package from a specific registry:
|
||||
|
||||
`npm star {{package_name}} --registry={{registry_url}}`
|
||||
|
||||
- Star a private package that requires authentication:
|
||||
|
||||
`npm star {{package_name}} --auth-type={{legacy|oauth|web|saml}}`
|
||||
|
||||
- Star a package by providing an OTP for two-factor authentication:
|
||||
|
||||
`npm star {{package_name}} --otp={{otp}}`
|
||||
|
||||
- Star a package with detailed logging:
|
||||
|
||||
`npm star {{package_name}} --loglevel=verbose`
|
||||
|
||||
- List all your starred packages:
|
||||
|
||||
`npm star --list`
|
||||
|
||||
- List your starred packages from a specific registry:
|
||||
|
||||
`npm star --list --registry={{registry_url}}`
|
Loading…
Add table
Reference in a new issue