5.0.0 • Published 7 months ago

@friedemannsommer/lcov-parser v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

LCOV parser

A LCOV file parser, written in TypeScript.

npm CI codecov node-current

This parser is built for the LCOV trace file format, which can be found here: github.com/linux-test-project/lcov/man/geninfo.1.

You're able to use different field names, if necessary.

Installation

npm install --save-dev --save-exact @friedemannsommer/lcov-parser

or the shorter equivalent:

npm i -DE @friedemannsommer/lcov-parser

Basic usage

string data

import lcovParser from "@friedemannsommer/lcov-parser/sync"

const sections = lcovParser({ from: "<LCOV data>" })

Buffer / ArrayBuffer

import lcovParser from "@friedemannsommer/lcov-parser/sync"

const sections = lcovParser({ from: Buffer.from("<LCOV data>") })

Readable streams

import lcovParser from "@friedemannsommer/lcov-parser"
import {createReadStream} from "node:fs"

const lcovFile = createReadStream(new URL("path/to/lcov.info", import.meta.url))
const sections = await lcovParser({ from: lcovFile })

For more details, take a look at the documentation, which can be found here: friedemannsommer.github.io/lcov-parser.

5.0.0

7 months ago

4.0.4

9 months ago

4.0.3

9 months ago

4.0.2

12 months ago

4.0.1

1 year ago

4.0.0

1 year ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago