istanbul-lib-coverage
Data library for istanbul coverage objects
Last updated 9 years ago by gotwarlost .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install istanbul-lib-coverage 
SYNC missed versions from official npm registry.

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);

Current Tags

  • 3.2.2                                ...           latest (a year ago)

29 Versions

  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           5 years ago
  • 3.0.0-alpha.2                                ...           5 years ago
  • 3.0.0-alpha.1                                ...           5 years ago
  • 3.0.0-alpha.0                                ...           5 years ago
  • 2.0.5                                ...           5 years ago
  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.0-alpha.4                                ...           9 years ago
  • 1.0.0-alpha.3                                ...           9 years ago
  • 1.0.0-alpha.2                                ...           9 years ago
  • 1.0.0-alpha.1                                ...           9 years ago
  • 1.0.0-alpha.0                                ...           9 years ago
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |