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's chromium faster, detect local installed chromium, download chromium with custom/mirror host, cache chromium revision out of node_modules, test chromium headless being launchable.

  • 1.0.12
  • 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's 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

  • A tool to customize puppeteer
  • Detect chromium from local path.
  • Download chromium from custom/mirror host.
  • Cache chromium to local.
  • Try to launch chromium and returns launchable property
  • Returns puppeteer and executablePath

Install

npm install puppeteer-chromium-resolver --save

Usage

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

Default Option

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

CHANGELOG

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

FAQs

Package last updated on 08 Jul 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