Skip to content

Commit

Permalink
npm-star: add page (#14531)
Browse files Browse the repository at this point in the history
Co-authored-by: Juri Dispan <[email protected]>
  • Loading branch information
SaiTeja-002 and gutjuri authored Nov 2, 2024
1 parent e3380fe commit 698bdb1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pages/common/npm-star.md
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}}`

0 comments on commit 698bdb1

Please sign in to comment.