2.0.0 • Published 4 years ago
codecov-lite v2.0.0
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)
})()