# collect-v8-coverage

> Use this module to start and stop the V8 inspector manually and collect precise coverage.

Latest version **1.0.3** (published 2025-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install collect-v8-coverage
pnpm add collect-v8-coverage
yarn add collect-v8-coverage
bun add collect-v8-coverage
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2025-10-15 |
| First published | 2019-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Maintainers | simenb |

## Links

- npm: https://www.npmjs.com/package/collect-v8-coverage
- Repository: https://github.com/SimenB/collect-v8-coverage
- Homepage: https://github.com/SimenB/collect-v8-coverage#readme
- Issues: https://github.com/SimenB/collect-v8-coverage/issues
- npm.io page: https://npm.io/package/collect-v8-coverage

## Recent versions

- 1.0.3 (latest) — 2025-10-15
- 1.0.2 — 2023-07-05
- 1.0.1 — 2020-04-02
- 1.0.0 — 2019-12-16

## README

# collect-v8-coverage

Use this module to start and stop the V8 inspector manually and collect precise coverage.

```js
const {CoverageInstrumenter} = require('collect-v8-coverage');

const instrumenter = new CoverageInstrumenter();

await instrumenter.startInstrumenting();

// require some modules, run some code

const coverage = await instrumenter.stopInstrumenting();
```

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