npm audit
Run a security audit
Subcommands
Name | Description |
---|---|
fix | If the fix argument is provided, then remediations will be applied to the package tree |
Options
Name | Description |
---|---|
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |
--audit-level <audit> | The minimum level of vulnerability for npm audit to exit with a non-zero exit code |
--package-lock-only | Current operation will only use the package-lock.json, ignoring node_modules |
--json | Show output in json format |
--omit <Package type> |
|