UNPKG

puppeteer-chromium-resolver

Version:

Tool to resolve puppeteer and chromium faster, detect local installed chromium, download chromium with custom mirror host, cache chromium revision out of node_modules, test chromium headless being launchable.

10 lines (9 loc) 254 B
const EC = require('eight-colors'); const PCR = require('./index.js'); const { PUPPETEER_SKIP_DOWNLOAD } = process.env; // skip download when install if (PUPPETEER_SKIP_DOWNLOAD) { EC.logYellow('[PCR] PUPPETEER_SKIP_DOWNLOAD'); } else { PCR(); }