Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jill64/v8-resolver

🔱 Revive Chaotic Raw V8 Coverage
https://github.com/jill64/v8-resolver

convert coverage node v8

Last synced: 2 months ago
JSON representation

🔱 Revive Chaotic Raw V8 Coverage

Awesome Lists containing this project

README

        

# @jill64/v8-resolver

npm-version npm-license npm-download-month npm-min-size ci.yml

🔱 Revive Chaotic Raw V8 Coverage

Convert from V8 coverage of JS files built from multiple sources to V8 coverage of source files.

## Installation

```sh
npm i @jill64/v8-resolver
```

## Usage

```js
import { resolve } from '@jill64/v8-resolver'

const result = await resolve(/* ... Node V8 Coverage Data ... */)
```

## Convert from file path

```js
import { resolve, fromPath } from '@jill64/v8-resolver'

const result = await resolve(fromPath('/path/to/coverage-file.json'))
```

## Merge Results

```js
import { resolve, merge } from '@jill64/v8-resolver'

const resolved = await resolve(/* ... */)
const merged = merge(resolved)
```

## License

[MIT](LICENSE)