aboutsummaryrefslogtreecommitdiff
path: root/bin/coveralls.js
blob: 7d92ad291a7a68498dd14aeea756f4b187bba507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env node

'use strict';

const { handleInput } = require('..');

process.stdin.resume();
process.stdin.setEncoding('utf8');

let input = '';

process.stdin.on('data', chunk => {
  input += chunk;
});

process.stdin.on('end', () => {
  handleInput(input, err => {
    if (err) {
      throw err;
    }
  });
});