node-ipc/lcov.js

10 lines
241 B
JavaScript
Raw Normal View History

2021-07-03 07:35:02 +10:00
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);
}
);