# chrome-debugging

> Chrome DevTools Protocol

Latest version **1.2.6** (published 2022-08-24) · MIT license · 0 weekly downloads

## Install

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

## 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.2.6 |
| Published | 2022-08-24 |
| First published | 2022-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lucas Barrena |
| Maintainers | lukks |

## Links

- npm: https://www.npmjs.com/package/chrome-debugging
- Repository: https://github.com/LuKks/chrome-debugging
- Issues: https://github.com/LuKks/chrome-debugging/issues
- npm.io page: https://npm.io/package/chrome-debugging

## Dependencies (2)

- [mutexify](https://npm.io/package/mutexify.md) ^1.4.0
- [chrome-remote-interface](https://npm.io/package/chrome-remote-interface.md) ^0.31.3

## Recent versions

- 1.2.6 (latest) — 2022-08-24
- 1.2.5 — 2022-08-24
- 1.2.4 — 2022-08-24
- 1.2.3 — 2022-08-24
- 1.2.2 — 2022-08-24
- 1.2.1 — 2022-08-22
- 1.2.0 — 2022-08-21
- 1.1.3 — 2022-08-21
- 1.1.2 — 2022-08-21
- 1.1.1 — 2022-08-21
- 1.1.0 — 2022-08-21
- 1.0.0 — 2022-08-20

## README

# chrome-debugging

Chrome DevTools Protocol.

```
npm i chrome-debugging
```

Cache built-in by target id, common helpers, and easy to use.

## Usage
```javascript
const ChromeDebugging = require('chrome-debugging')

const chrome = new ChromeDebugging({ port: 9230 })
const targets = await chrome.list({ ignoreProtocols: ['devtools'] })

for (const target of targets) {
  const tab = await chrome.use(target.id)

  // const { DOM, CSS, Page, Runtime } = tab
  console.log(await tab.$('*'))

  // await tab.close()
}

await chrome.destroy()
```

It uses [chrome-remote-interface](https://github.com/cyrus-and/chrome-remote-interface) internally.\
I.e. `tab` has several properties, methods, etc as the original "CDP client".

## License
MIT

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