</>PackageGraphPackageGraph

istanbul-lib-coverage

npmv3.2.2

Data library for istanbul coverage objects

Adopt with care

istanbul-lib-coverage is usable, with caveats. Last published 1036 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 1036 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 34 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 4 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    BSD-3-Clause — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding istanbul-lib-coverage to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

34 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=8
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the istanbul-lib-coverage README.

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);
});
Example truncated — see the full README.

istanbul-lib-coverage vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
istanbul-lib-coveragethis page010BSD-3-Clause2 years ago
@vitest/istanbul-lib-coverage495.5K7MIT1 day ago
@vitest/istanbul-lib-instrument24.9K2MIT1 day ago
@vitest/coverage-istanbul04MIT1 day ago
v8-to-istanbul01ISC1 day ago
istanbul-lib-instrument04BSD-3-Clause1 day ago

Dependencies

Declared by istanbul-lib-coverage v3.2.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

chai ^4.2.0mocha ^6.2.2nyc ^15.0.0-beta.2

Used by

Popular packages that depend on istanbul-lib-coverage.

Relationship graph

Dependencies (left) and dependents (right) of istanbul-lib-coverage.

Frequently installed together

Release history

No releases in the last two years, typically about 45 days apart.

Recent versions of istanbul-lib-coverage
VersionPublishedSizeLicense
3.2.2latest2 years ago34 KBBSD-3-Clause
3.2.12 years ago33 KBBSD-3-Clause
3.2.04 years ago29 KBBSD-3-Clause
3.1.04 years ago28 KBBSD-3-Clause
3.0.24 years ago27 KBBSD-3-Clause
3.0.15 years ago26 KBBSD-3-Clause
3.0.06 years ago25 KBBSD-3-Clause
3.0.0-alpha.26 years ago24 KBBSD-3-Clause
3.0.0-alpha.17 years ago24 KBBSD-3-Clause
3.0.0-alpha.07 years ago22 KBBSD-3-Clause
2.0.57 years ago22 KBBSD-3-Clause
2.0.47 years ago22 KBBSD-3-Clause
2.0.37 years ago22 KBBSD-3-Clause
2.0.27 years ago22 KBBSD-3-Clause
1.2.18 years ago21 KBBSD-3-Clause

Overview

istanbul-lib-coverage is an npm package that data library for istanbul coverage objects. It has 10 known dependents in the graph. The latest version is 3.2.2, released under the BSD-3-Clause license.

Who should use it

Teams working in the npm ecosystem who need data library for istanbul coverage objects and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (BSD-3-Clause).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use istanbul-lib-coverage?

istanbul-lib-coverage is usable, with caveats. Last published 1036 days ago.

How do I install istanbul-lib-coverage?

Run `npm install istanbul-lib-coverage` to add istanbul-lib-coverage to your npm project.

What license is istanbul-lib-coverage released under?

istanbul-lib-coverage is distributed under the BSD-3-Clause license.

How popular is istanbul-lib-coverage?

npm does not publish download counts. Within PackageGraph's crawl, 10 known packages depend on istanbul-lib-coverage.

Is istanbul-lib-coverage still maintained?

The most recent release of istanbul-lib-coverage (v3.2.2) was published 2 years ago.

Does istanbul-lib-coverage run install scripts?

No. istanbul-lib-coverage does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.