Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 90ccaef

Browse filesBrowse files
committed
audit: support for --json output
1 parent 1365694 commit 90ccaef
Copy full SHA for 90ccaef

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/install/audit.js

Copy file name to clipboardExpand all lines: lib/install/audit.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function printInstallReport (auditResult) {
105105
function printFullReport (auditResult) {
106106
return auditReport(auditResult, {
107107
log: output,
108-
reporter: 'detail',
108+
reporter: npm.config.get('json') ? 'json' : 'detail',
109109
withColor: npm.color,
110110
withUnicode: npm.config.get('unicode')
111111
}).then(result => output(result.report))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.