snyk-enrich-license v1.0.3
Snyk License Enrich Utility
The Snyk License Enrich Utility takes the json outputted from snyk test --json and outputs the same json, with license full text added, either from the module itself, or, if that is missing, from the relevant SPDX license template.
How do I use it?
Install the Snyk License Enrich Utility using npm
npm install snyk-enrich-license -gAlternatively, you can skip this step, clone the repo and run the script locally (using
node ./snyk-enrich-license.js)Generate JSON data by running
snyk test --jsonand pipe that to the utilitysnyk test --json | snyk-enrich-license > results.jsonOR, generate JSON data by running
snyk testand save the output to a file, and pass the resulting JSON file to Snyk's License Enrich Utilitysnyk test --json > results.json
snyk-enrich-license -i report.json > results.json which is equivalent to
snyk-enrich-license -i report.json -o results.json
- Open your new file (
results.jsonabove), and rejoice.