LinuxCommandLibrary

npm-star

Star and unstar npm packages

TLDR

Star a public package from the default registry

$ npm star [package_name]
copy

Star a package within a specific scope
$ npm star @[scope]/[package_name]
copy

Star a package from a specific registry
$ npm star [package_name] --registry=[registry_url]
copy

Star a private package that requires authentication
$ npm star [package_name] --auth-type=[legacy|oauth|web|saml]
copy

Star a package by providing an OTP for two-factor authentication
$ npm star [package_name] --otp=[otp]
copy

Star a package with detailed logging
$ npm star [package_name] --loglevel=verbose
copy

List all your starred packages
$ npm star --list
copy

List your starred packages from a specific registry
$ npm star --list --registry=[registry_url]
copy

SYNOPSIS

npm-star <package-name>
npm-star <package-name> --unstar

PARAMETERS

<package-name>
    The name of the npm package to star or unstar.

--unstar
    Unstars the specified package. If not provided, the command defaults to starring the package.

DESCRIPTION

The `npm-star` command is a Node Package Manager (npm) utility, typically installed globally, that allows you to easily star and unstar packages on the npm registry directly from your command line. Starring packages is a way to show appreciation and support for the package's author and project. It can also help you keep track of packages you find useful or interesting. By starring a package, you are essentially marking it as a favorite in your npm profile. This allows you to quickly find and refer back to these packages later. The `npm-star` command simplifies the process of interacting with the npm registry's star feature, eliminating the need to navigate to the npm website. The npm cli and npm website use the number of stars given to a package as a metric to measure how popular a package is. Packages with more stars tend to appear higher in search results. This tool is particularly useful for developers who frequently use and discover new npm packages.

CAVEATS

Requires npm to be installed and configured with a valid npm account. You must be logged in to npm to star or unstar packages.

INSTALLATION

The `npm-star` command is typically installed globally using npm:
npm install -g npm-star

EXAMPLE

Star a package:
npm-star lodash
Unstar a package:
npm-star lodash --unstar

SEE ALSO

npm(1), npm-unstar(1)

Copied to clipboard