New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-chromium-resolver

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-chromium-resolver

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.

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36K
decreased by-26.37%
Maintainers
1
Weekly downloads
 
Created
Source

Puppeteer Chromium Resolver

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.

npm npm David

  • Tool to customize puppeteer
  • Detect local chromium automatically
  • Download chromium from custom mirror host
  • Cache chromium to local folder
  • Try launching chromium and resolve launchable and version
  • Resolve chromium executablePath and puppeteer

Install

npm install puppeteer-chromium-resolver --save

Usage

const PCR = require("puppeteer-chromium-resolver");
const pcr = await PCR();
const browser = await pcr.puppeteer.launch({
    headless: true,
    args: ['--no-sandbox'],
    executablePath: pcr.executablePath
}).catch(function (error) {
    console.log(error);
});
const page = await browser.newPage();
await page.goto('https://www.google.com');
await browser.close();

Option

const pcr = await PCR({
    revision: "",
    detectionPath: "",
    folderName: '.chromium-browser-snapshots',
    hosts: ["https://storage.googleapis.com", "https://npm.taobao.org/mirrors"],
    retry: 3,
    silent: false
});

Properties

PropertyType
revisionStringcurrent chromium revision
executablePathStringchromium executable path
folderPathStringchromium folder path
localBooleanexists local chromium
urlStringchromium download url
launchableBooleanchromium launchable
chromiumVersionStringchromium version
puppeteerObjectpuppeteer module
puppeteerVersionStringpuppeteer version

CHANGELOG

  • v3.0.0

    • updated puppeteer-core version to v2.0.0
  • v2.0.1

    • updated puppeteer-core version to v1.19.0
    • refactoring with async/await
    • fixed requesting timeout
  • v1.0.12

    • updated puppeteer-core version to v1.18.1
    • fixed a gauge log issue

FAQs

Package last updated on 29 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc