npm-search.1 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. .TH "NPM\-SEARCH" "1" "October 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-search\fR \- Search for packages
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm search [\-l|\-\-long] [\-\-json] [\-\-parseable] [\-\-no\-description] [search terms \.\.\.]
  9. aliases: s, se, find
  10. .fi
  11. .RE
  12. .P
  13. Note: This command is unaware of workspaces\.
  14. .SS Description
  15. .P
  16. Search the registry for packages matching the search terms\. \fBnpm search\fP
  17. performs a linear, incremental, lexically\-ordered search through package
  18. metadata for all files in the registry\. If your terminal has color
  19. support, it will further highlight the matches in the results\. This can
  20. be disabled with the config item \fBcolor\fP
  21. .P
  22. Additionally, using the \fB\-\-searchopts\fP and \fB\-\-searchexclude\fP options
  23. paired with more search terms will include and exclude further patterns\.
  24. The main difference between \fB\-\-searchopts\fP and the standard search terms
  25. is that the former does not highlight results in the output and you can
  26. use them more fine\-grained filtering\. Additionally, you can add both of
  27. these to your config to change default search filtering behavior\.
  28. .P
  29. Search also allows targeting of maintainers in search results, by prefixing
  30. their npm username with \fB=\fP\|\.
  31. .P
  32. If a term starts with \fB/\fP, then it's interpreted as a regular expression
  33. and supports standard JavaScript RegExp syntax\. In this case search will
  34. ignore a trailing \fB/\fP \. (Note you must escape or quote many regular
  35. expression characters in most shells\.)
  36. .SS Configuration
  37. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
  38. <!\-\- automatically generated, do not edit manually \-\->
  39. <!\-\- see lib/utils/config/definitions\.js \-\->
  40. .SS \fBlong\fP
  41. .RS 0
  42. .IP \(bu 2
  43. Default: false
  44. .IP \(bu 2
  45. Type: Boolean
  46. .RE
  47. .P
  48. Show extended information in \fBls\fP, \fBsearch\fP, and \fBhelp\-search\fP\|\.
  49. <!\-\- automatically generated, do not edit manually \-\->
  50. <!\-\- see lib/utils/config/definitions\.js \-\->
  51. .SS \fBjson\fP
  52. .RS 0
  53. .IP \(bu 2
  54. Default: false
  55. .IP \(bu 2
  56. Type: Boolean
  57. .RE
  58. .P
  59. Whether or not to output JSON data, rather than the normal output\.
  60. .RS 0
  61. .IP \(bu 2
  62. In \fBnpm pkg set\fP it enables parsing set values with JSON\.parse() before
  63. saving them to your \fBpackage\.json\fP\|\.
  64. .RE
  65. .P
  66. Not supported by all npm commands\.
  67. <!\-\- automatically generated, do not edit manually \-\->
  68. <!\-\- see lib/utils/config/definitions\.js \-\->
  69. .SS \fBcolor\fP
  70. .RS 0
  71. .IP \(bu 2
  72. Default: true unless the NO_COLOR environ is set to something other than '0'
  73. .IP \(bu 2
  74. Type: "always" or Boolean
  75. .RE
  76. .P
  77. If false, never shows colors\. If \fB"always"\fP then always shows colors\. If
  78. true, then only prints color codes for tty file descriptors\.
  79. <!\-\- automatically generated, do not edit manually \-\->
  80. <!\-\- see lib/utils/config/definitions\.js \-\->
  81. .SS \fBparseable\fP
  82. .RS 0
  83. .IP \(bu 2
  84. Default: false
  85. .IP \(bu 2
  86. Type: Boolean
  87. .RE
  88. .P
  89. Output parseable results from commands that write to standard output\. For
  90. \fBnpm search\fP, this will be tab\-separated table format\.
  91. <!\-\- automatically generated, do not edit manually \-\->
  92. <!\-\- see lib/utils/config/definitions\.js \-\->
  93. .SS \fBdescription\fP
  94. .RS 0
  95. .IP \(bu 2
  96. Default: true
  97. .IP \(bu 2
  98. Type: Boolean
  99. .RE
  100. .P
  101. Show the description in \fBnpm search\fP
  102. <!\-\- automatically generated, do not edit manually \-\->
  103. <!\-\- see lib/utils/config/definitions\.js \-\->
  104. .SS \fBsearchopts\fP
  105. .RS 0
  106. .IP \(bu 2
  107. Default: ""
  108. .IP \(bu 2
  109. Type: String
  110. .RE
  111. .P
  112. Space\-separated options that are always passed to search\.
  113. <!\-\- automatically generated, do not edit manually \-\->
  114. <!\-\- see lib/utils/config/definitions\.js \-\->
  115. .SS \fBsearchexclude\fP
  116. .RS 0
  117. .IP \(bu 2
  118. Default: ""
  119. .IP \(bu 2
  120. Type: String
  121. .RE
  122. .P
  123. Space\-separated options that limit the results from search\.
  124. <!\-\- automatically generated, do not edit manually \-\->
  125. <!\-\- see lib/utils/config/definitions\.js \-\->
  126. .SS \fBregistry\fP
  127. .RS 0
  128. .IP \(bu 2
  129. Default: "https://registry\.npmjs\.org/"
  130. .IP \(bu 2
  131. Type: URL
  132. .RE
  133. .P
  134. The base URL of the npm registry\.
  135. <!\-\- automatically generated, do not edit manually \-\->
  136. <!\-\- see lib/utils/config/definitions\.js \-\->
  137. .SS \fBprefer\-online\fP
  138. .RS 0
  139. .IP \(bu 2
  140. Default: false
  141. .IP \(bu 2
  142. Type: Boolean
  143. .RE
  144. .P
  145. If true, staleness checks for cached data will be forced, making the CLI
  146. look for updates immediately even for fresh package data\.
  147. <!\-\- automatically generated, do not edit manually \-\->
  148. <!\-\- see lib/utils/config/definitions\.js \-\->
  149. .SS \fBprefer\-offline\fP
  150. .RS 0
  151. .IP \(bu 2
  152. Default: false
  153. .IP \(bu 2
  154. Type: Boolean
  155. .RE
  156. .P
  157. If true, staleness checks for cached data will be bypassed, but missing data
  158. will be requested from the server\. To force full offline mode, use
  159. \fB\-\-offline\fP\|\.
  160. <!\-\- automatically generated, do not edit manually \-\->
  161. <!\-\- see lib/utils/config/definitions\.js \-\->
  162. .SS \fBoffline\fP
  163. .RS 0
  164. .IP \(bu 2
  165. Default: false
  166. .IP \(bu 2
  167. Type: Boolean
  168. .RE
  169. .P
  170. Force offline mode: no network requests will be done during install\. To
  171. allow the CLI to fill in missing cache data, see \fB\-\-prefer\-offline\fP\|\.
  172. <!\-\- automatically generated, do not edit manually \-\->
  173. <!\-\- see lib/utils/config/definitions\.js \-\->
  174. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
  175. .SS See Also
  176. .RS 0
  177. .IP \(bu 2
  178. npm help registry
  179. .IP \(bu 2
  180. npm help config
  181. .IP \(bu 2
  182. npm help npmrc
  183. .IP \(bu 2
  184. npm help view
  185. .IP \(bu 2
  186. npm help cache
  187. .IP \(bu 2
  188. https://npm\.im/npm\-registry\-fetch
  189. .RE