Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

istanbul-lib-instrument

Package Overview
Dependencies
5
Maintainers
4
Versions
70
Issues
File Explorer

Advanced tools

istanbul-lib-instrument

Core istanbul API for JS code coverage

    5.2.0latest

Version published
Maintainers
4
Weekly downloads
26,801,461
decreased by-3.17%

Weekly downloads

Changelog

Source

istanbul-lib-instrument: v5.2.0

5.2.0 (2022-02-21)

Features

  • exclude Empty Object and Arrays in Truthy Detection (#666) (e279684)

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 22,513,851 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 20 Apr 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc