Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

istanbul-lib-instrument

Package Overview
Dependencies
5
Maintainers
4
Versions
71
Issues
File Explorer

Advanced tools

istanbul-lib-instrument

Core istanbul API for JS code coverage

    5.2.1latest
    Github

Version published
Maintainers
4
Weekly downloads
30,235,601
increased by7.95%

Weekly downloads

Changelog

Source

istanbul-lib-instrument: v5.2.1

5.2.1 (2022-10-05)

Bug Fixes

  • handle error when inputSourceMap is not a plain object (#662) (3e3611f)

Readme

Source

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.

Keywords

FAQs

What is istanbul-lib-instrument?

Core istanbul API for JS code coverage

Is istanbul-lib-instrument popular?

The npm package istanbul-lib-instrument receives a total of 29,030,502 weekly downloads. As such, istanbul-lib-instrument popularity was classified as popular.

Is istanbul-lib-instrument well maintained?

We found that istanbul-lib-instrument demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 4 open source maintainers collaborating on the project.

Last updated on 05 Oct 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc