Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including codecov-lite with all npm packages installed. Try it out:

var codecovLite = require("codecov-lite")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

codecov-lite v0.1.3

LCOV uploader for codecov.io service

codecov-lite

npm build coverage deps

LCOV (code coverage data) uploader for codecov.io service. Fork of codecov.io + codecov-node synced with codecov-bash.

Features and caveats

  • no execSync
  • sync/async services configs
  • Promise-based API
  • stdin-only CLI
  • no GCOV features
  • no local git
  • Node.js >= 0.12

Supported services:

Install

npm i -D codecov-lite

Usage

CLI

cat coverage/lcov.info | ./node_modules/.bin/codecov

API

import codecov from 'codecov-lite';

const data = 'LCOV as string goes here';

codecov(data)
    .then((result) => {
        console.log(result.config);
        console.log(result.reportURL);
    })
    .catch((error) => {
        console.error('oops', error);
    });

TODO

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free