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}'
65
65
The audit command submits a description of the dependencies configured in
66
66
your project to your default registry and asks for a report of known
67
67
vulnerabilities. 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.
69
70
70
71
You can also have npm automatically fix the vulnerabilities by running `npm
71
72
audit 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
99
100
value being replaced, ensuring a consistent value within the payload that is
100
101
different between runs.
101
102
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
+
102
110
## SEE ALSO
103
111
104
112
* npm-install(1)
You can’t perform that action at this time.
0 commit comments