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

istanbul-lib-coverage

Package Overview
Dependencies
0
Maintainers
4
Versions
27
Issues
File Explorer

Advanced tools

istanbul-lib-coverage

Data library for istanbul coverage objects

    3.2.0latest

Version published
Maintainers
4
Weekly downloads
23,907,279
decreased by-3.35%

Weekly downloads

Changelog

Source

istanbul-lib-coverage istanbul-lib-coverage-v3.2.0

Features

  • allow FileCoverage to be initialized with logical tracking (#644) (4cb5af1)

Readme

Source

istanbul-lib-coverage

Greenkeeper badge Build Status

An API that provides a read-only view of coverage information with the ability to merge and summarize coverage info.

Supersedes object-utils and collector from the v0 istanbul API.

See the docs for the full API.

var libCoverage = require('istanbul-lib-coverage'); var map = libCoverage.createCoverageMap(globalCoverageVar); var summary = libCoverage.createCoverageSummary(); // merge another coverage map into the one we created map.merge(otherCoverageMap); // inspect and summarize all file coverage objects in the map map.files().forEach(function(f) { var fc = map.fileCoverageFor(f), s = fc.toSummary(); summary.merge(s); }); console.log('Global summary', summary);

Keywords

FAQs

What is istanbul-lib-coverage?

Data library for istanbul coverage objects

Is istanbul-lib-coverage popular?

The npm package istanbul-lib-coverage receives a total of 19,143,683 weekly downloads. As such, istanbul-lib-coverage popularity was classified as popular.

Is istanbul-lib-coverage well maintained?

We found that istanbul-lib-coverage demonstrated a healthy version release cadence and project activity. It has 4 open source maintainers collaborating on the project.

Last updated on 18 Oct 2021
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