update-search-sensitivity
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | --- |
| 2 | title: npm-star |
| 3 | section: 1 |
| 4 | description: Mark your favorite packages |
| 5 | github_repo: npm/cli |
| 6 | github_branch: release/v9 |
| 7 | github_path: docs/lib/content/commands/npm-star.md |
| 8 | redirect_from: |
| 9 | - /cli-documentation/v9/cli-commands/npm-star |
| 10 | - /cli-documentation/v9/cli-commands/star |
| 11 | - /cli-documentation/v9/commands/npm-star |
| 12 | - /cli-documentation/v9/commands/star |
| 13 | - /cli-documentation/v9/npm-star |
| 14 | - /cli-documentation/v9/star |
| 15 | - /cli/v9/cli-commands/npm-star |
| 16 | - /cli/v9/cli-commands/star |
| 17 | - /cli/v9/commands/star |
| 18 | - /cli/v9/npm-star |
| 19 | - /cli/v9/star |
| 20 | --- |
| 21 | |
| 22 | ### Synopsis |
| 23 | |
| 24 | ```bash |
| 25 | npm star [<package-spec>...] |
| 26 | ``` |
| 27 | |
| 28 | Note: This command is unaware of workspaces. |
| 29 | |
| 30 | ### Description |
| 31 | |
| 32 | "Starring" a package means that you have some interest in it. It's a vaguely positive way to show that you care. |
| 33 | |
| 34 | It's a boolean thing. Starring repeatedly has no additional effect. |
| 35 | |
| 36 | ### More |
| 37 | |
| 38 | There's also these extra commands to help you manage your favorite packages: |
| 39 | |
| 40 | #### Unstar |
| 41 | |
| 42 | You can also "unstar" a package using [`npm unstar`](/cli/v9/commands/npm-unstar) |
| 43 | |
| 44 | "Unstarring" is the same thing, but in reverse. |
| 45 | |
| 46 | #### Listing stars |
| 47 | |
| 48 | You can see all your starred packages using [`npm stars`](/cli/v9/commands/npm-stars) |
| 49 | |
| 50 | ### Configuration |
| 51 | |
| 52 | #### `registry` |
| 53 | |
| 54 | - Default: "https://registry.npmjs.org/" |
| 55 | - Type: URL |
| 56 | |
| 57 | The base URL of the npm registry. |
| 58 | |
| 59 | #### `unicode` |
| 60 | |
| 61 | - Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables. |
| 62 | - Type: Boolean |
| 63 | |
| 64 | When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs. |
| 65 | |
| 66 | #### `otp` |
| 67 | |
| 68 | - Default: null |
| 69 | - Type: null or String |
| 70 | |
| 71 | This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`. |
| 72 | |
| 73 | 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. |
| 74 | |
| 75 | ### See Also |
| 76 | |
| 77 | - [package spec](/cli/v9/using-npm/package-spec) |
| 78 | - [npm unstar](/cli/v9/commands/npm-unstar) |
| 79 | - [npm stars](/cli/v9/commands/npm-stars) |
| 80 | - [npm view](/cli/v9/commands/npm-view) |
| 81 | - [npm whoami](/cli/v9/commands/npm-whoami) |
| 82 | - [npm adduser](/cli/v9/commands/npm-adduser) |