compact-yarn-audit
Version:
Presents output from yarn audit in a compact table
10 lines (9 loc) • 297 B
JavaScript
import { EOL } from "node:os";
import { terseAdvisoryLog2Table } from "./terse-advisory-to-table.js";
export default function format(pTerseEntries) {
if (pTerseEntries.length > 0) {
return terseAdvisoryLog2Table(pTerseEntries);
} else {
return `${EOL} no vulnerabilities found ${EOL}`;
}
}