coveralls-next
Version:
takes json-cov output into stdin and POSTs to coveralls.io
24 lines (17 loc) • 367 B
JavaScript
;
const { handleInput } = require('..');
process.stdin.resume();
process.stdin.setEncoding('utf8');
let input = '';
process.stdin.on('data', chunk => {
input += chunk;
});
process.stdin.on('end', async () => {
try {
await handleInput(input);
} catch (err) {
console.error(err.message);
process.exit(1);
}
});