UNPKG

418 BPlain TextView Raw
1#!/usr/bin/env node
2const path = require("path");
3const spawn = require("child_process").spawn;
4const binPath = require(path.join(__dirname, "..", "lib", "chromedriver")).path;
5const args = process.argv.slice(2);
6const cp = spawn(binPath, args);
7cp.stdout.pipe(process.stdout);
8cp.stderr.pipe(process.stderr);
9cp.on("exit", process.exit);
10process.on("SIGTERM", function() {
11 cp.kill("SIGTERM");
12 process.exit(1);
13});
\No newline at end of file