File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ $ npm audit --parseable | awk -F $'\t' '{print $1,$4}'
6565The audit command submits a description of the dependencies configured in
6666your project to your default registry and asks for a report of known
6767vulnerabilities. The report returned includes instructions on how to act on
68- this information.
68+ this information. The command will exit with a 0 exit code if no
69+ vulnerabilities were found.
6970
7071You can also have npm automatically fix the vulnerabilities by running `npm
7172audit fix`. Note that some vulnerabilities cannot be fixed automatically and
@@ -99,6 +100,13 @@ The non-reversible identifiers are a sha256 of a session-specific UUID and the
99100value being replaced, ensuring a consistent value within the payload that is
100101different between runs.
101102
103+ ## EXIT CODE
104+
105+ The ` npm audit ` command will exit with a 0 exit code if no vulnerabilities were found.
106+
107+ If vulnerabilities were found the exit code will depend on the ` audit-level `
108+ configuration setting.
109+
102110## SEE ALSO
103111
104112* npm-install(1)
You can’t perform that action at this time.
0 commit comments