istanbul-lib-coverage
npmv3.2.2Data 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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);
});
istanbul-lib-coverage vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| istanbul-lib-coveragethis page | 0 | 10 | BSD-3-Clause | 2 years ago |
| @vitest/istanbul-lib-coverage | 495.5K | 7 | MIT | 1 day ago |
| @vitest/istanbul-lib-instrument | 24.9K | 2 | MIT | 1 day ago |
| @vitest/coverage-istanbul | 0 | 4 | MIT | 1 day ago |
| v8-to-istanbul | 0 | 1 | ISC | 1 day ago |
| istanbul-lib-instrument | 0 | 4 | BSD-3-Clause | 1 day ago |
Dependencies
Declared by istanbul-lib-coverage v3.2.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on istanbul-lib-coverage.
Source maps support for istanbul
Jest's reporters
Fire events the same way the user does
AST-aware v8-to-istanbul
Core istanbul API for JS code coverage
V8 coverage provider for Vitest
An implementation of WHATWG EventTarget interface.
Istanbul coverage provider for Vitest
istanbul reports
Base reporting library for istanbul
Relationship graph
Dependencies (left) and dependents (right) of istanbul-lib-coverage.
Frequently installed together
Base reporting library for istanbul
istanbul reports
Source maps support for istanbul
Next generation testing framework powered by Vite
TypeScript definitions for istanbul-lib-coverage
TypeScript definitions for istanbul-reports
TypeScript definitions for istanbul-lib-report
TypeScript execution environment and REPL for node.js, with source map support
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
Trace the original position through a source map
An extremely fast JavaScript and CSS bundler and minifier.
Release history
No releases in the last two years, typically about 45 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.2.2latest | 2 years ago | 34 KB | BSD-3-Clause |
| 3.2.1 | 2 years ago | 33 KB | BSD-3-Clause |
| 3.2.0 | 4 years ago | 29 KB | BSD-3-Clause |
| 3.1.0 | 4 years ago | 28 KB | BSD-3-Clause |
| 3.0.2 | 4 years ago | 27 KB | BSD-3-Clause |
| 3.0.1 | 5 years ago | 26 KB | BSD-3-Clause |
| 3.0.0 | 6 years ago | 25 KB | BSD-3-Clause |
| 3.0.0-alpha.2 | 6 years ago | 24 KB | BSD-3-Clause |
| 3.0.0-alpha.1 | 7 years ago | 24 KB | BSD-3-Clause |
| 3.0.0-alpha.0 | 7 years ago | 22 KB | BSD-3-Clause |
| 2.0.5 | 7 years ago | 22 KB | BSD-3-Clause |
| 2.0.4 | 7 years ago | 22 KB | BSD-3-Clause |
| 2.0.3 | 7 years ago | 22 KB | BSD-3-Clause |
| 2.0.2 | 7 years ago | 22 KB | BSD-3-Clause |
| 1.2.1 | 8 years ago | 21 KB | BSD-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
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.