3.1.1 • Published 4 months ago

@friedemannsommer/lcov-parser v3.1.1

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

LCOV parser

A LCOV file parser, written in TypeScript.

npm CI codecov node-current node-lts

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"

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

Buffer / ArrayBuffer

import lcovParser from "@friedemannsommer/lcov-parser"

const sections = await 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.

3.1.1

4 months ago

3.1.0

6 months ago

3.0.2

6 months ago

3.0.0

8 months ago

2.1.0

9 months ago

2.0.0

9 months ago

1.0.0

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago