-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Juri Dispan <[email protected]>
- Loading branch information
1 parent
e3380fe
commit 698bdb1
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |