Parse npm audit reports and create docx document with summary of vulnerabilities
Python-docx is required to run this script (https://python-docx.readthedocs.io/en/latest/). It can be installed by running pip install python-docx
- Create npm audit report
npm audit --parseable &> npm-audit-report.txt
- Move report file to
npm
directory alongside the script - Run
python3 ./npm-audit-2-docx.py