Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Show HN: NPM-Audit-to-Report
(opens in new tab)
(github.com)
5 points
yehors
1y ago
5 comments
Save
Share
5 comments
5 comments · 2 top-level
top
newest
oldest
cluckindan
1y ago
· 2 in thread
Why not use
npm audit --json
and just pass it to a template?
yehors
OP
1y ago
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.
thangngoc89
1y ago
The script seems to be invoking yarn audit --json and does the templating.
thangngoc89
1y ago
· 1 in thread
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?
yehors
OP
1y ago
Actually, it's the same. As I understand they use one database.
j
/
k
navigate · click thread line to collapse