# bisect-chrome

> Like git bisect, but for Chrome

Latest version **1.4.0** (published 2023-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install bisect-chrome
pnpm add bisect-chrome
yarn add bisect-chrome
bun add bisect-chrome
```

Provides the command `bisect-chrome`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2023-02-23 |
| First published | 2019-09-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Joel Einbinder |
| Maintainers | joeleinbinder |

## Links

- npm: https://www.npmjs.com/package/bisect-chrome
- Repository: https://github.com/JoelEinbinder/bisect-chrome
- Homepage: https://github.com/JoelEinbinder/bisect-chrome#readme
- Issues: https://github.com/JoelEinbinder/bisect-chrome/issues
- npm.io page: https://npm.io/package/bisect-chrome

## Dependencies (5)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [readline](https://npm.io/package/readline.md) ^1.3.0
- [puppeteer-core](https://npm.io/package/puppeteer-core.md) ^1.20.0

## Recent versions

- 1.4.0 (latest) — 2023-02-23
- 1.3.1 — 2022-05-05
- 1.3.0 — 2022-01-31
- 1.2.2 — 2021-05-06
- 1.2.1 — 2021-04-20
- 1.2.0 — 2021-04-20
- 1.1.1 — 2021-04-06
- 1.1.0 — 2021-04-06
- 1.0.1 — 2019-09-17
- 1.0.0 — 2019-09-17

## README

# 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](https://github.com/GoogleChrome/puppeteer/blob/master/utils/bisect.js) and then cleaned up a bit for public use.

---
_Source: https://npm.io/package/bisect-chrome · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
