UNPKG

chromeless

Version:

🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.

14 lines (13 loc) • 458 B
import { Chrome, Command, ChromelessOptions } from '../types'; export default class LocalChrome implements Chrome { private options; private runtimeClientPromise; private chromeInstance?; constructor(options?: ChromelessOptions); private initRuntimeClient(); private startChrome(); private connectToChrome(); private setViewport(client); process<T extends any>(command: Command): Promise<T>; close(): Promise<void>; }