1 | #!/usr/bin/env node
|
2 |
|
3 | import createReporter from './index';
|
4 |
|
5 | const reporter = createReporter();
|
6 |
|
7 | process.stdin
|
8 | .pipe(reporter)
|
9 | .pipe(process.stdout);
|
10 |
|
11 | process.on('exit', status => {
|
12 | if (status === 1 || reporter.isFailed) process.exit(1);
|
13 | });
|