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.

85 lines
6.2 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-audit</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-audit.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-audit.html">npm-audit</a></h1> <p>Run a security audit</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm audit [--json|--parseable]
  13. npm audit fix [--force|--package-lock-only|--dry-run|--production|--only=dev]</code></pre><h2 id="examples">EXAMPLES</h2>
  14. <p>Scan your project for vulnerabilities and automatically install any compatible
  15. updates to vulnerable dependencies:</p>
  16. <pre><code>$ npm audit fix</code></pre><p>Run <code>audit fix</code> without modifying <code>node_modules</code>, but still updating the
  17. pkglock:</p>
  18. <pre><code>$ npm audit fix --package-lock-only</code></pre><p>Skip updating <code>devDependencies</code>:</p>
  19. <pre><code>$ npm audit fix --only=prod</code></pre><p>Have <code>audit fix</code> install semver-major updates to toplevel dependencies, not just
  20. semver-compatible ones:</p>
  21. <pre><code>$ npm audit fix --force</code></pre><p>Do a dry run to get an idea of what <code>audit fix</code> will do, and <em>also</em> output
  22. install information in JSON format:</p>
  23. <pre><code>$ npm audit fix --dry-run --json</code></pre><p>Scan your project for vulnerabilities and just show the details, without fixing
  24. anything:</p>
  25. <pre><code>$ npm audit</code></pre><p>Get the detailed audit report in JSON format:</p>
  26. <pre><code>$ npm audit --json</code></pre><p>Get the detailed audit report in plain text result, separated by tab characters, allowing for
  27. future reuse in scripting or command line post processing, like for example, selecting
  28. some of the columns printed:</p>
  29. <pre><code>$ npm audit --parseable</code></pre><p>To parse columns, you can use for example <code>awk</code>, and just print some of them:</p>
  30. <pre><code>$ npm audit --parseable | awk -F $&#39;\t&#39; &#39;{print $1,$4}&#39;</code></pre><h2 id="description">DESCRIPTION</h2>
  31. <p>The audit command submits a description of the dependencies configured in
  32. your project to your default registry and asks for a report of known
  33. vulnerabilities. The report returned includes instructions on how to act on
  34. this information.</p>
  35. <p>You can also have npm automatically fix the vulnerabilities by running <code>npm
  36. audit fix</code>. Note that some vulnerabilities cannot be fixed automatically and
  37. will require manual intervention or review. Also note that since <code>npm audit fix</code>
  38. runs a full-fledged <code>npm install</code> under the hood, all configs that apply to the
  39. installer will also apply to <code>npm install</code> -- so things like <code>npm audit fix
  40. --package-lock-only</code> will work as expected.</p>
  41. <h2 id="content-submitted">CONTENT SUBMITTED</h2>
  42. <ul>
  43. <li>npm_version</li>
  44. <li>node_version</li>
  45. <li>platform</li>
  46. <li>node_env</li>
  47. <li>A scrubbed version of your package-lock.json or npm-shrinkwrap.json</li>
  48. </ul>
  49. <h3 id="scrubbing">SCRUBBING</h3>
  50. <p>In order to ensure that potentially sensitive information is not included in
  51. the audit data bundle, some dependencies may have their names (and sometimes
  52. versions) replaced with opaque non-reversible identifiers. It is done for
  53. the following dependency types:</p>
  54. <ul>
  55. <li>Any module referencing a scope that is configured for a non-default
  56. registry has its name scrubbed. (That is, a scope you did a <code>npm login --scope=@ourscope</code> for.)</li>
  57. <li>All git dependencies have their names and specifiers scrubbed.</li>
  58. <li>All remote tarball dependencies have their names and specifiers scrubbed.</li>
  59. <li>All local directory and tarball dependencies have their names and specifiers scrubbed.</li>
  60. </ul>
  61. <p>The non-reversible identifiers are a sha256 of a session-specific UUID and the
  62. value being replaced, ensuring a consistent value within the payload that is
  63. different between runs.</p>
  64. <h2 id="see-also">SEE ALSO</h2>
  65. <ul>
  66. <li><a href="../cli/npm-install.html">npm-install(1)</a></li>
  67. <li><a href="../files/package-locks.html">package-locks(5)</a></li>
  68. <li><a href="../misc/config.html">config(7)</a></li>
  69. </ul>
  70. </div>
  71. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  72. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  73. <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>
  74. <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>
  75. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  76. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  77. <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>
  78. <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>
  79. </table>
  80. <p id="footer">npm-audit &mdash; npm@6.4.1</p>