Socket
Socket
Sign inDemoInstall

bisect-chrome

Package Overview
Dependencies
42
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bisect-chrome

Like git bisect, but for Chrome


Version published
Weekly downloads
2
Maintainers
1
Install size
3.87 MB
Created
Weekly downloads
 

Readme

Source

bisect-chrome

Basic Usage:

  • npx bisect-chrome

Advanced Usage:

  • npx bisect-chrome [--manual] [--good <revision>] [--bad <revision>] [<script>]

Parameters:

  • --manual manually respond with "good" or "bad" instead of running script
  • --good revision that is known to be GOOD. Defaults to the latest revision
  • --bad revision that is known to be BAD. Defaults to 305043
  • --shell a shell script to run instead of a script path
  • <script> path to a Puppeteer script that returns a non-zero code for BAD and 0 for GOOD.

Example:

  • npx bisect-chrome --good 577361 --bad 599821 simple.js
  • npx bisect-chrome --good 577361 --bad 599821 --shell "npm run ctest"
  • npx bisect-chrome --manual --good 577361 --bad 599821

Use https://omahaproxy.appspot.com/ to find revisions.

Note: The Chromium executable path is exposed to the script as the `CRPATH` environment variable.

If a script is specified, launching Puppeteer from within that script will use the current Chromium revision. Revisions older than 493957 won't work with modern Puppeteer.

This script was extracted from Puppeteer's bisect.js and then cleaned up a bit for public use.

FAQs

Last updated on 23 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc