npm star \[lB]<package-spec>...\[rB]
Note: This command is unaware of workspaces.
"Starring" a package means that you have some interest in it. It's a vaguely positive way to show that you care.
It's a boolean thing. Starring repeatedly has no additional effect.
There's also these extra commands to help you manage your favorite packages:
You can also "unstar" a package using npm help unstar
"Unstarring" is the same thing, but in reverse.
You can see all your starred packages using npm help stars
The base URL of the npm registry.
When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with npm access.
If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.