2018-02-23 03:06:13 +00:00
|
|
|
(async() => {
|
2019-02-25 20:40:17 +00:00
|
|
|
const [, , puppeteerRoot, options] = process.argv;
|
2018-02-23 03:06:13 +00:00
|
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
|
|
const page = await browser.newPage();
|
2019-07-18 23:42:11 +00:00
|
|
|
await page.evaluate(() => console.error('message from dumpio'));
|
2018-02-23 03:06:13 +00:00
|
|
|
await page.close();
|
|
|
|
await browser.close();
|
|
|
|
})();
|