UNPKG

is-my-node-supply-chain-secure

Version:

Scans your computer for node modules that are potentially vulnerable to supply chain attacks. You still need to review the code of modules that are not vulnerable, but this helps.

10 lines (9 loc) 250 B
import lcov2badge from 'lcov2badge'; import {writeFileSync} from 'fs'; lcov2badge.badge( './coverage/lcov.info', function(err, svgBadge){ if (err) throw err; writeFileSync('./coverage/lcov.svg', svgBadge); } );