c8
c8 is a free, open source command-line tool that produces code coverage reports from Node.js’ built-in V8 coverage.
What c8 is
c8 is a free, open source command-line tool that produces code coverage reports from Node.js’ built-in V8 coverage. It supports JavaScript, TypeScript, and JSX, and reports lines, functions, branches, and statements. Its coverage works with Istanbul-compatible reporters; the README also documents an experimental Monocart option with v8 and console-details reporters. Configuration can come from command-line flags, a c8 section in package.json, or a JSON file. The --all option includes eligible source files that were not loaded and marks them at 0% coverage. Source maps can connect coverage from generated code back to original files, whether maps are inline or separate. Projects can set coverage thresholds, including per-file checks, and c8 can fail tests when thresholds are missed. Special comments can exclude a following line, a specified number of lines, or a block. The README shows global npm installation and running c8 with a Node.js script. The repository lists an ISC license. Release v12.0.0 states that its dependencies require Node.js ^20.19.0, ^22.12.0, or >=23.
Good
- Uses Node.js’ built-in V8 coverage.
- Reports lines, functions, branches, and statements.
- Supports Istanbul-compatible reporters.
- Can enforce overall and per-file thresholds.
- Source maps can remap coverage to original files.
Watch out
- Latest listed release has specific Node.js requirements.
- Monocart reporting is described as experimental.
- Pull-request annotations are not supported.
- Historical coverage trends are not supported.
Who it suits
c8 suits JavaScript, TypeScript, and JSX developers who want command-line coverage reports and configurable coverage gates. It is relevant when source-map remapping or Istanbul-compatible reporting is useful.
Verdict
c8 provides configurable coverage reports and threshold checks for Node.js projects. Check the Node.js version requirement for the listed release before adopting it.
Plans and prices
From c8's own pricing page, checked 8 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| c8 | Free | Open-source Node.js command-line code coverage tool |
The facts
Each one read from c8's own pages, with the date it was checked.
What it does
- Configuration
- c8 accepts command-line flags, a c8 section in package.json, or a JSON configuration file.checked 8 Oct 2026
- Coverage scope
- The --all option adds eligible source files that were not loaded by the engine to the report with 0% coverage.checked 8 Oct 2026
- Ignore comments
- Special c8 comments can exclude the next line, a chosen number of lines, or a block from coverage.checked 8 Oct 2026
- Installation
- The README shows installing c8 globally with npm and running it with a Node.js script.checked 8 Oct 2026
- License
- The repository identifies its license as ISC.checked 8 Oct 2026
- Purpose
- c8 produces code coverage reports using Node.js’ built-in V8 coverage.checked 8 Oct 2026
- Report compatibility
- Its coverage is compatible with Istanbul reporters.checked 8 Oct 2026
- Report formats
- The README documents Istanbul-compatible reporters and an experimental Monocart option with v8 and console-details reporters.checked 8 Oct 2026
- Runtime requirement
- The latest listed release, v12.0.0, states that its dependencies require Node.js ^20.19.0, ^22.12.0, or >=23.checked 8 Oct 2026
- Security
- The repository has a Security and quality section, but the opened security page did not expose specific security or compliance claims.checked 8 Oct 2026
- Source maps
- c8 can remap coverage from generated code to original source files and load inline or separate source map files.checked 8 Oct 2026
- Thresholds
- c8 can fail tests when coverage falls below configured thresholds, including per-file checks.checked 8 Oct 2026
Alternatives to c8
- 1

Codecov
Free planOpen sourceWebAPIExtensionLinux8.0From $5 a month - 2
Avidemux
Free planOpen sourceWebLinuxmacOSWindows7.3Free plan - 3
Coverage.py
Free planOpen sourceAPILinuxmacOSSelf-hosted7.3Free plan - 4

Coveralls
Free planWebAPILinuxSelf-hosted6.8From $10 a month - 5
ReportGenerator
Free planLinuxmacOSWindows6.8$79 one-time - 6
gcov
Free planLinuxmacOSWindows6.5Free plan
