c8
github.com
- Free plan
- Linux
What c8 is
c8 is a free, open-source command-line tool for producing code coverage reports from Node.js’ built-in V8 coverage. It supports JavaScript, TypeScript, and JSX, and measures lines, functions, branches, and statements. Reports work with Istanbul-compatible reporters; the README also lists an experimental Monocart option with v8 and console-details reporters. You can configure c8 with command-line flags, a c8 section in package.json, or a JSON file. The --all option adds eligible files not loaded by the engine and records them at 0% coverage. Source maps can map generated code back to original files, using inline or separate maps. Thresholds can fail tests, including per-file checks. Special comments exclude lines or blocks. Installation uses npm and a Node.js script. The latest listed release, v12.0.0, requires dependencies supporting specified Node.js versions. The repository identifies an ISC license.
Who it suits
c8 suits JavaScript, TypeScript, and JSX developers who need Node.js coverage reports, configurable thresholds, and compatible report formats.
Good to know, and what to watch
- Free and open source
- Supports lines, functions, branches, and statements
- Istanbul-compatible reporting
- Threshold checks can fail tests
- Source-map remapping available
- Linux is the listed platform
- Latest release has specific Node.js requirements
- Monocart reporting is experimental
Plans
Every plan and pricec8
Open source
The verdict
c8 provides Node.js coverage measurement with configurable reporting, source-map handling, and coverage gates. It fits projects that need command-line coverage for JavaScript-family code.
What the maker publishes
- Configuration
- c8 accepts command-line flags, a c8 section in package.json, or a JSON configuration file. source
- Coverage scope
- The --all option adds eligible source files that were not loaded by the engine to the report with 0% coverage. source
- Ignore comments
- Special c8 comments can exclude the next line, a chosen number of lines, or a block from coverage. source
- Installation
- The README shows installing c8 globally with npm and running it with a Node.js script. source
- License
- The repository identifies its license as ISC. source
- Purpose
- c8 produces code coverage reports using Node.js’ built-in V8 coverage. source
- Report compatibility
- Its coverage is compatible with Istanbul reporters. source
- Report formats
- The README documents Istanbul-compatible reporters and an experimental Monocart option with v8 and console-details reporters. source
- Runtime requirement
- The latest listed release, v12.0.0, states that its dependencies require Node.js ^20.19.0, ^22.12.0, or >=23. source
- Security
- The repository has a Security and quality section, but the opened security page did not expose specific security or compliance claims. source
- Source maps
- c8 can remap coverage from generated code to original source files and load inline or separate source map files. source
- Thresholds
- c8 can fail tests when coverage falls below configured thresholds, including per-file checks. source
Checked against the maker's pages on 8 Oct 2026.