codecov-lite
v2.0.0
Published
LCOV uploader for codecov.io service
Downloads
7,695
Readme
codecov-lite
LCOV (code coverage data) uploader for codecov.io service. Synced with codecov-bash.
- no CLI
- no local Git
- no GCOV features
- Promise-based API
Supported services
Install
$ yarn add --dev codecov-lite
Usage
import { readFile } from 'fs'
import { promisify } from 'util'
import codecov from 'codecov-lite'
(async () => {
const pReadFile = promisify(readFile)
const lcovData = readFile('./coverage/lcov.info', 'utf8')
const { reportURL, config } = await codecov(lcovData)
})()