One Double Zero is a code coverage tool focusing on relevance, accuracy, simplicity, flexibility, and speed. It offers a CLI tool named 'odz' that wraps any command to collect V8-based coverage data. As of version 1.1.1, it is actively maintained with frequent releases. Unlike other coverage tools like Istanbul or c8, One Double Zero aims for minimal configuration and high precision by leveraging native V8 coverage. It ships TypeScript types and supports both ESM and CommonJS.
npm install one-double-zeroVerified import paths — ran on the pinned version, not inferred.
Demonstrates CLI usage and programmatic API to collect V8 coverage data with include/exclude patterns.
Use import syntax or dynamic import().
Use absolute paths or prefix relative paths with './'.
Update config to use 'coverageExclude' instead of 'exclude'.
Change to import statement or use dynamic import().
Use import { runCoverage } from 'one-double-zero' instead of import odz from 'one-double-zero' then destructure.Ensure the output directory exists or use an absolute path with existing directory.
No dependency data recorded yet.