www.LinuxHowtos.org
NPM\-SEARCH
Section: (1)Updated: December 2016
Index Return to Main Contents
NAME
npm-search - Search for packagesSYNOPSIS
-
npm search [-l|--long] [--json] [--parseable] [--no-description] [search terms ...] aliases: s, se, find
DESCRIPTION
Search the registry for packages matching the search terms. npm search performs a linear, incremental, lexically-ordered search through package metadata for all files in the registry. If color is enabled, it will further highlight the matches in the results. Additionally, using the --searchopts and --searchexclude options paired with more search terms will respectively include and exclude further patterns. The main difference between --searchopts and the standard search terms is that the former does not highlight results in the output and can be used for more fine-grained filtering. Additionally, both of these can be added to .npmrc for default search filtering behavior. Search also allows targeting of maintainers in search results, by prefixing their npm username with =. If a term starts with /, then it's interpreted as a regular expression and supports standard JavaScript RegExp syntax. A trailing / will be ignored in this case. (Note that many regular expression characters must be escaped or quoted in most shells.)A Note on caching
CONFIGURATION
description
-
- *
- Default: true
- *
-
Type: Boolean
json
-
- *
- Default: false
- *
-
Type: Boolean
parseable
-
- *
- Default: false
- *
-
Type: Boolean
long
-
- *
- Default: false
- *
-
Type: Boolean
searchopts
-
- *
- Default: ""
- *
-
Type: String
searchexclude
-
- *
- Default: ""
- *
-
Type: String
searchstaleness
-
- *
- Default: 900 (15 minutes)
- *
-
Type: Number
registry
-
- *
- Default: https://registry.npmjs.org/
- *
-
Type: url
SEE ALSO
-
- *
- npm help 7 registry
- *
- npm help config
- *
- npm help 7 config
- *
- npm help 5 npmrc
- *
-
npm help view