Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented ability to print JSON report to console #532

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fumblehool
Copy link

@fumblehool fumblehool commented Apr 30, 2023

Fixes: #257

This PR contains suggestions from Pr: #400

--json flag will output json report to console.
Example $ npm-check --json

Sample report:

[
{
"moduleName": "babel-runtime",
"homepage": "https://github.com/babel/babel",
"latest": "6.26.0",
"installed": "6.26.0",
"isInstalled": true,
"notInstalled": false,
"packageWanted": "6.26.0",
"packageJson": "^6.6.1",
"devDependency": false,
"mismatch": false,
"semverValid": "6.26.0",
"easyUpgrade": true,
"bump": null,
"unused": false
}
]

@rkristelijn
Copy link

It would be great to have this feature!

Copy link

@sebastianrothe sebastianrothe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@rkristelijn
Copy link

Any news guys? Wanting this feature build some nice gitlab reporting on top of it, like https://www.npmjs.com/package/@rkristelijn/todomd, https://www.npmjs.com/package/npm-audit-plus-plus and https://www.npmjs.com/package/npm-outdated-junit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to save report to file
3 participants