News for hackers. Stuff that matters.
Re:Show HN: NPM-Audit-to-Report by thangngoc89 on Sunday March 23, 2025 @02:05PM (#43454615)
The README is kinda light on details. This is a utility written in Go that convert yarn’s audit file from json to Markdown for reporting as part of the CI pipeline.

I’m wondering if yarn’s audit is better than npm’s audit?

Re:Show HN: NPM-Audit-to-Report by yehors on Sunday March 23, 2025 @03:33PM (#43455247)
Actually, it's the same. As I understand they use one database.
Re:Show HN: NPM-Audit-to-Report by cluckindan on Sunday March 23, 2025 @05:27PM (#43456048)
Why not use

    npm audit --json 
and just pass it to a template?
Re:Show HN: NPM-Audit-to-Report by thangngoc89 on Monday March 24, 2025 @03:18AM (#43458366)
The script seems to be invoking yarn audit --json and does the templating.
Re:Show HN: NPM-Audit-to-Report by yehors on Monday March 24, 2025 @11:37AM (#43462267)
Not easy it sounds. Generated file has JSONL and each has summary or advisory lines. My script just processes them to a Markdown in Go.