npm search <search terms...>
Search for packages
Arguments
Name | Description |
---|---|
search terms |
Options
Name | Description |
---|---|
-l, --long | Show extended information |
--json | Show output in json format |
--color <always> | Show colors |
--no-color | Do not show colors |
-p, --parseable | Output parseable results from commands that write to standard output |
--no-description | Do not show descriptions |
--searchopts <searchopts> | Space-separated options that are always passed to search |
--searchexclude <searchexclude> | Space-separated options that limit the results from search |
--registry <registry> | The base URL of the npm registry |
--prefer-online | If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data |
--prefer-offline | If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server |
--offline | Force offline mode: no network requests will be done during install |