| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 | .TH "NPM\-SEARCH" "1" "August 2021" "" "".SH "NAME"\fBnpm-search\fR \- Search for packages.SS Synopsis.P.RS 2.nfnpm search [\-l|\-\-long] [\-\-json] [\-\-parseable] [\-\-no\-description] [search terms \.\.\.]aliases: s, se, find.fi.RE.SS Description.PSearch the registry for packages matching the search terms\. \fBnpm search\fPperforms a linear, incremental, lexically\-ordered search through packagemetadata for all files in the registry\. If color is enabled, it will furtherhighlight the matches in the results\..PAdditionally, using the \fB\-\-searchopts\fP and \fB\-\-searchexclude\fP options paired withmore search terms will respectively include and exclude further patterns\. Themain difference between \fB\-\-searchopts\fP and the standard search terms is that theformer does not highlight results in the output and can be used for morefine\-grained filtering\. Additionally, both of these can be added to \fB\|\.npmrc\fP fordefault search filtering behavior\..PSearch also allows targeting of maintainers in search results, by prefixingtheir npm username with \fB=\fP\|\..PIf a term starts with \fB/\fP, then it's interpreted as a regular expression andsupports standard JavaScript RegExp syntax\. A trailing \fB/\fP will be ignored inthis case\. (Note that many regular expression characters must be escaped orquoted in most shells\.).SS A Note on caching.SS Configuration.SS description.RS 0.IP \(bu 2Default: true.IP \(bu 2Type: Boolean.RE.PUsed as \fB\-\-no\-description\fP, disables search matching in package descriptions andsuppresses display of that field in results\..SS json.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.POutput search results as a JSON array\..SS parseable.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.POutput search results as lines with tab\-separated columns\..SS long.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.PDisplay full package descriptions and other long text across multiplelines\. When disabled (default) search results are truncated to fitneatly on a single line\. Modules with extremely long names willfall on multiple lines\..SS searchopts.RS 0.IP \(bu 2Default: "".IP \(bu 2Type: String.RE.PSpace\-separated options that are always passed to search\..SS searchexclude.RS 0.IP \(bu 2Default: "".IP \(bu 2Type: String.RE.PSpace\-separated options that limit the results from search\..SS searchstaleness.RS 0.IP \(bu 2Default: 900 (15 minutes).IP \(bu 2Type: Number.RE.PThe age of the cache, in seconds, before another registry request is made\..SS registry.RS 0.IP \(bu 2Default: https://registry\.npmjs\.org/.IP \(bu 2Type: url.RE.PSearch the specified registry for modules\. If you have configured npm to pointto a different default registry, such as your internal private modulerepository, \fBnpm search\fP will default to that registry when searching\. Pass adifferent registry url such as the default above in order to override thissetting\..SS See Also.RS 0.IP \(bu 2npm help registry.IP \(bu 2npm help config.IP \(bu 2npm help npmrc.IP \(bu 2npm help view.RE
 |