Convert JSON output from `snyk test --json` into a MD
npm install snyk-to-mdThe Snyk JSON to HTML Mapper takes the json outputted from snyk test --json and creates a local formatted MD file displaying the vulnerabilities discovered.
First, Install the Snyk to MD using npm:
npm install snyk-to-md -g
Change directory to your package's json root folder, then use of the two ways below to generate the MD report.
1. Directly streaming the results to snyk-to-md:
Run the following line to create a file called Snyk.md:
snyk test --json | snyk-to-md -o ./report/Snyk.md
2. Using a temporary file:
Or just run:
snyk test --json | snyk-to-md
And it will create Snyk_Report.md in directory
Simply open your new file (Snyk_Report.md above) and enjoy.