npm star
Mark a package as favorite. More information: https://docs.npmjs.com/cli/v11/npm-star.
- Star a public package from the default registry:
npm star
- Star a package within a specific scope:
npm star @/
- Star a package from a specific registry:
npm star --registry
- Star a private package that requires authentication:
npm star --auth-type
- Star a package by providing an OTP for two-factor authentication:
npm star --otp
- Star a package with detailed logging:
npm star --loglevel verbose
- List all your starred packages:
npm star --list
- List your starred packages from a specific registry:
npm star --list --registry
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
