# sl-istanbul-lib-instrument

> SL update to the core istanbul API for JS code coverage

Latest version **6.0.8** (published 2026-09-27) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install sl-istanbul-lib-instrument
pnpm add sl-istanbul-lib-instrument
yarn add sl-istanbul-lib-instrument
bun add sl-istanbul-lib-instrument
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated.

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

## Facts

| | |
|---|---|
| Version | 6.0.8 |
| Published | 2026-09-27 |
| First published | 2024-05-28 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 7 |
| Unpacked size | 52.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1106 |
| Author | Krishnan Anantheswaran |
| Maintainers | sealights |
| Keywords | coverage, istanbul, js, instrumentation |

## Links

- npm: https://www.npmjs.com/package/sl-istanbul-lib-instrument
- Repository: https://github.com/istanbuljs/istanbuljs
- Homepage: https://istanbul.js.org/
- Issues: https://github.com/istanbuljs/istanbuljs/issues
- npm.io page: https://npm.io/package/sl-istanbul-lib-instrument

## Dependencies (7)

- [uuid](https://npm.io/package/uuid.md) ^11.1.1
- [semver](https://npm.io/package/semver.md) ^7.5.4
- [source-map](https://npm.io/package/source-map.md) 0.6.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.23.9
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.23.9
- [@istanbuljs/schema](https://npm.io/package/@istanbuljs/schema.md) ^0.1.3
- [istanbul-lib-coverage](https://npm.io/package/istanbul-lib-coverage.md) ^3.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 6.0.8 (latest) — 2026-09-27
- 6.0.7 — 2025-06-09
- 6.0.6 — 2025-04-08
- 6.0.5 — 2025-04-08
- 6.0.4 — 2025-04-03
- 6.0.3 — 2025-03-12
- 6.0.2 — 2024-05-28

## README

## istanbul-lib-instrument

[![Build Status](https://travis-ci.org/istanbuljs/istanbul-lib-instrument.svg?branch=main)](https://travis-ci.org/istanbuljs/istanbul-lib-instrument)

Istanbul instrumenter library.

Version 1.1.x now implements instrumentation using `Babel`. The implementation is inspired
by prior art by @dtinth as demonstrated in the `__coverage__` babel plugin.

It provides 2 "modes" of instrumentation.

-   The old API that is mostly unchanged (except for incompatibilities noted) and
    performs the instrumentation using babel as a library.

-   A `programVisitor` function for the Babel AST that can be used by a Babel plugin
    to emit instrumentation for ES6 code directly without any source map
    processing. This is the preferred path for babel users. The Babel plugin is
    called `babel-plugin-istanbul`.

Incompatibilities and changes to instrumentation behavior can be found in
[v0-changes.md](v0-changes.md).

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