Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
6.1 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-search</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-search.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-search.html">npm-search</a></h1> <p>Search for packages</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm search [-l|--long] [--json] [--parseable] [--no-description] [search terms ...]
  13. aliases: s, se, find</code></pre><h2 id="description">DESCRIPTION</h2>
  14. <p>Search the registry for packages matching the search terms. <code>npm search</code>
  15. performs a linear, incremental, lexically-ordered search through package
  16. metadata for all files in the registry. If color is enabled, it will further
  17. highlight the matches in the results.</p>
  18. <p>Additionally, using the <code>--searchopts</code> and <code>--searchexclude</code> options paired with
  19. more search terms will respectively include and exclude further patterns. The
  20. main difference between <code>--searchopts</code> and the standard search terms is that the
  21. former does not highlight results in the output and can be used for more
  22. fine-grained filtering. Additionally, both of these can be added to <code>.npmrc</code> for
  23. default search filtering behavior.</p>
  24. <p>Search also allows targeting of maintainers in search results, by prefixing
  25. their npm username with <code>=</code>.</p>
  26. <p>If a term starts with <code>/</code>, then it&#39;s interpreted as a regular expression and
  27. supports standard JavaScript RegExp syntax. A trailing <code>/</code> will be ignored in
  28. this case. (Note that many regular expression characters must be escaped or
  29. quoted in most shells.)</p>
  30. <h3 id="a-note-on-caching">A Note on caching</h3>
  31. <h2 id="configuration">CONFIGURATION</h2>
  32. <h3 id="description">description</h3>
  33. <ul>
  34. <li>Default: true</li>
  35. <li>Type: Boolean</li>
  36. </ul>
  37. <p>Used as <code>--no-description</code>, disables search matching in package descriptions and
  38. suppresses display of that field in results.</p>
  39. <h3 id="json">json</h3>
  40. <ul>
  41. <li>Default: false</li>
  42. <li>Type: Boolean</li>
  43. </ul>
  44. <p>Output search results as a JSON array.</p>
  45. <h3 id="parseable">parseable</h3>
  46. <ul>
  47. <li>Default: false</li>
  48. <li>Type: Boolean</li>
  49. </ul>
  50. <p>Output search results as lines with tab-separated columns.</p>
  51. <h3 id="long">long</h3>
  52. <ul>
  53. <li>Default: false</li>
  54. <li>Type: Boolean</li>
  55. </ul>
  56. <p>Display full package descriptions and other long text across multiple
  57. lines. When disabled (default) search results are truncated to fit
  58. neatly on a single line. Modules with extremely long names will
  59. fall on multiple lines.</p>
  60. <h3 id="searchopts">searchopts</h3>
  61. <ul>
  62. <li>Default: &quot;&quot;</li>
  63. <li>Type: String</li>
  64. </ul>
  65. <p>Space-separated options that are always passed to search.</p>
  66. <h3 id="searchexclude">searchexclude</h3>
  67. <ul>
  68. <li>Default: &quot;&quot;</li>
  69. <li>Type: String</li>
  70. </ul>
  71. <p>Space-separated options that limit the results from search.</p>
  72. <h3 id="searchstaleness">searchstaleness</h3>
  73. <ul>
  74. <li>Default: 900 (15 minutes)</li>
  75. <li>Type: Number</li>
  76. </ul>
  77. <p>The age of the cache, in seconds, before another registry request is made.</p>
  78. <h3 id="registry">registry</h3>
  79. <ul>
  80. <li>Default: <a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a></li>
  81. <li>Type: url</li>
  82. </ul>
  83. <p>Search the specified registry for modules. If you have configured npm to point
  84. to a different default registry, such as your internal private module
  85. repository, <code>npm search</code> will default to that registry when searching. Pass a
  86. different registry url such as the default above in order to override this
  87. setting.</p>
  88. <h2 id="see-also">SEE ALSO</h2>
  89. <ul>
  90. <li><a href="../misc/npm-registry.html">npm-registry(7)</a></li>
  91. <li><a href="../cli/npm-config.html">npm-config(1)</a></li>
  92. <li><a href="../misc/npm-config.html">npm-config(7)</a></li>
  93. <li><a href="../files/npmrc.html">npmrc(5)</a></li>
  94. <li><a href="../cli/npm-view.html">npm-view(1)</a></li>
  95. </ul>
  96. </div>
  97. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  98. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  99. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  100. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  101. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  102. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  103. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  104. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  105. </table>
  106. <p id="footer">npm-search &mdash; npm@6.4.1</p>