istanbul-lib-instrument (5.2.1)

Published 2026-02-24 13:58:50 +00:00 by atheaadmin

Installation

registry=
npm install istanbul-lib-instrument@5.2.1
"istanbul-lib-instrument": "5.2.1"

About this package

istanbul-lib-instrument

Build Status

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.

Dependencies

Dependencies

ID Version
@babel/core ^7.12.3
@babel/parser ^7.14.7
@istanbuljs/schema ^0.1.2
istanbul-lib-coverage ^3.2.0
semver ^6.3.0

Development Dependencies

ID Version
@babel/cli ^7.7.5
chai ^4.2.0
clone ^2.1.2
debug ^4.1.1
documentation ^12.1.4
js-yaml ^3.13.1
mocha ^6.2.3
nopt ^4.0.1
nyc ^15.1.0

Keywords

coverage istanbul js instrumentation
Details
npm
2026-02-24 13:58:50 +00:00
0
Krishnan Anantheswaran
BSD-3-Clause
latest
16 KiB
Assets (1)
Versions (1) View all
5.2.1 2026-02-24