11cb0ef41Sopenharmony_ci---
21cb0ef41Sopenharmony_cititle: npm-star
31cb0ef41Sopenharmony_cisection: 1
41cb0ef41Sopenharmony_cidescription: Mark your favorite packages
51cb0ef41Sopenharmony_ci---
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci### Synopsis
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci```bash
101cb0ef41Sopenharmony_cinpm star [<package-spec>...]
111cb0ef41Sopenharmony_ci```
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciNote: This command is unaware of workspaces.
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci### Description
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci"Starring" a package means that you have some interest in it.  It's
181cb0ef41Sopenharmony_cia vaguely positive way to show that you care.
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ciIt's a boolean thing. Starring repeatedly has no additional effect.
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ci### More
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ciThere's also these extra commands to help you manage your favorite packages:
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci#### Unstar
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ciYou can also "unstar" a package using [`npm unstar`](/commands/npm-unstar)
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_ci"Unstarring" is the same thing, but in reverse.
311cb0ef41Sopenharmony_ci
321cb0ef41Sopenharmony_ci#### Listing stars
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ciYou can see all your starred packages using [`npm stars`](/commands/npm-stars)
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ci### Configuration
371cb0ef41Sopenharmony_ci
381cb0ef41Sopenharmony_ci#### `registry`
391cb0ef41Sopenharmony_ci
401cb0ef41Sopenharmony_ci* Default: "https://registry.npmjs.org/"
411cb0ef41Sopenharmony_ci* Type: URL
421cb0ef41Sopenharmony_ci
431cb0ef41Sopenharmony_ciThe base URL of the npm registry.
441cb0ef41Sopenharmony_ci
451cb0ef41Sopenharmony_ci
461cb0ef41Sopenharmony_ci
471cb0ef41Sopenharmony_ci#### `unicode`
481cb0ef41Sopenharmony_ci
491cb0ef41Sopenharmony_ci* Default: false on windows, true on mac/unix systems with a unicode locale,
501cb0ef41Sopenharmony_ci  as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
511cb0ef41Sopenharmony_ci* Type: Boolean
521cb0ef41Sopenharmony_ci
531cb0ef41Sopenharmony_ciWhen set to true, npm uses unicode characters in the tree output. When
541cb0ef41Sopenharmony_cifalse, it uses ascii characters instead of unicode glyphs.
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_ci
571cb0ef41Sopenharmony_ci
581cb0ef41Sopenharmony_ci#### `otp`
591cb0ef41Sopenharmony_ci
601cb0ef41Sopenharmony_ci* Default: null
611cb0ef41Sopenharmony_ci* Type: null or String
621cb0ef41Sopenharmony_ci
631cb0ef41Sopenharmony_ciThis is a one-time password from a two-factor authenticator. It's needed
641cb0ef41Sopenharmony_ciwhen publishing or changing package permissions with `npm access`.
651cb0ef41Sopenharmony_ci
661cb0ef41Sopenharmony_ciIf not set, and a registry response fails with a challenge for a one-time
671cb0ef41Sopenharmony_cipassword, npm will prompt on the command line for one.
681cb0ef41Sopenharmony_ci
691cb0ef41Sopenharmony_ci
701cb0ef41Sopenharmony_ci
711cb0ef41Sopenharmony_ci### See Also
721cb0ef41Sopenharmony_ci
731cb0ef41Sopenharmony_ci* [package spec](/using-npm/package-spec)
741cb0ef41Sopenharmony_ci* [npm unstar](/commands/npm-unstar)
751cb0ef41Sopenharmony_ci* [npm stars](/commands/npm-stars)
761cb0ef41Sopenharmony_ci* [npm view](/commands/npm-view)
771cb0ef41Sopenharmony_ci* [npm whoami](/commands/npm-whoami)
781cb0ef41Sopenharmony_ci* [npm adduser](/commands/npm-adduser)
79