Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c8

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8 - npm Package Compare versions

Comparing version 7.11.3 to 7.12.0

2

lib/report.js

@@ -77,3 +77,3 @@ const Exclude = require('test-exclude')

skipFull: this.skipFull,
maxCols: 100
maxCols: process.stdout.columns || 100
}).execute(context)

@@ -80,0 +80,0 @@ }

{
"name": "c8",
"version": "7.11.3",
"version": "7.12.0",
"description": "output coverage reports using Node.js' built in coverage",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -39,2 +39,3 @@ # c8 - native V8 code-coverage

| `-x`, `--exclude` | see [section below](#checking-for-full-source-coverage-using---all) for more info | `Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-exclude.js) |
| `--exclude-after-remap` | see [section below](#exclude-after-remap) for more info | `boolean` | `false` |
| `-e`, `--extension` | only files matching these extensions will show coverage | `string \| Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-extension.js) |

@@ -57,2 +58,20 @@ | `--skip-full` | do not show files with 100% statement, branch, and function coverage | `boolean` | `false` |

## SourceMap Support
`c8` can handle source-maps, for remapping coverage from generated code to original source files (_useful for TypeScript, JSX, etc_).
### Source map files versus inline source maps
Just-in-time instrumented codebases will often insert source maps inline with the `.js` code they generate at runtime (e.g, `@babel/register` can be configured to insert a source map footer).
Pre-instrumented codebases, e.g., running `tsc` to generate `.js` in a build folder, may generate either inline source maps, or a separate `.map` file stored on disk.
`c8` can handle loading both types of source maps.
### Exclude after remap
Depending on the size and configuration of your project, it may be preferable to apply exclusion logic either before or after source-maps are used to remap compiled to original source files.
`--exclude-after-remap` is used to control this behaviour.
## c8 report

@@ -59,0 +78,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc