• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2title: npm-star
3section: 1
4description: Mark your favorite packages
5---
6
7### Synopsis
8
9```bash
10npm star [<package-spec>...]
11```
12
13Note: This command is unaware of workspaces.
14
15### Description
16
17"Starring" a package means that you have some interest in it.  It's
18a vaguely positive way to show that you care.
19
20It's a boolean thing. Starring repeatedly has no additional effect.
21
22### More
23
24There's also these extra commands to help you manage your favorite packages:
25
26#### Unstar
27
28You can also "unstar" a package using [`npm unstar`](/commands/npm-unstar)
29
30"Unstarring" is the same thing, but in reverse.
31
32#### Listing stars
33
34You can see all your starred packages using [`npm stars`](/commands/npm-stars)
35
36### Configuration
37
38#### `registry`
39
40* Default: "https://registry.npmjs.org/"
41* Type: URL
42
43The base URL of the npm registry.
44
45
46
47#### `unicode`
48
49* Default: false on windows, true on mac/unix systems with a unicode locale,
50  as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
51* Type: Boolean
52
53When set to true, npm uses unicode characters in the tree output. When
54false, it uses ascii characters instead of unicode glyphs.
55
56
57
58#### `otp`
59
60* Default: null
61* Type: null or String
62
63This is a one-time password from a two-factor authenticator. It's needed
64when publishing or changing package permissions with `npm access`.
65
66If not set, and a registry response fails with a challenge for a one-time
67password, npm will prompt on the command line for one.
68
69
70
71### See Also
72
73* [package spec](/using-npm/package-spec)
74* [npm unstar](/commands/npm-unstar)
75* [npm stars](/commands/npm-stars)
76* [npm view](/commands/npm-view)
77* [npm whoami](/commands/npm-whoami)
78* [npm adduser](/commands/npm-adduser)
79