@znode/find-chrome
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@zodash/find-chrome

TODO: description

Usage

import * as puppeteer from 'puppeteer';
import findChrome from '@zodash/find-chrome';

const browser = await puppeteer.launch({
  args: ['--no-sandbox', '--disable-setuid-sandbox'],
  executablePath: findChrome(),
});
const page = await browser.newPage();
await page.setUserAgent(
  `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36 Prerender`,
);
await page.setViewport({
  width: 1920,
  height: 1080,
});

await page.goto(url, {
  waitUntil: 'networkidle0',
});

Package Sidebar

Install

npm i @znode/find-chrome

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.81 kB

Total Files

8

Last publish

Collaborators

  • uniquecolesmith