node-ipc/lcov.js
2021-07-02 14:35:02 -07:00

10 lines
No EOL
241 B
JavaScript

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);
}
);