Package Exports
- c8/bin/c8.js
- c8/lib/report
- c8/lib/report.js
- c8/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (c8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
c8 - native V8 code-coverage
Code-coverage using Node.js' build in functionality that's compatible with Istanbul's reporters.
Like nyc, c8 just magically works:
npm i c8 -g
c8 node foo.jsThe above example will output coverage metrics for foo.js.
c8 report
run c8 report to regenerate reports after c8 has already been run.
Supported Node.js Versions
c8 uses
bleeding edge Node.js features,
make sure you're running Node.js >= 10.12.0.
Goals of the Project
A fully functional code coverage solution using only V8's native coverage features and minimal user-land modules, so that we fit these constraints:
- No parsing of JavaScript code.
- No mucking with Node.js' runtime environment.
Contributing to c8
See the contributing guide here.