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 golang-cover-parse with all npm packages installed. Try it out:

var golangCoverParse = require("golang-cover-parse")

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

golang-cover-parse v2.0.0

Parse Go coverage to JavaSript object, based on output from lcov-parse

golang-cover-parse

Parse Go cover results file to JavaScript Object

The output is based on, and intended to be compatible with, https://github.com/davglass/lcov-parse

Also see:

Use

var gocov = require( "golang-cover-parse" );

// parse by file path
gocov.parseFile( "filepath.out", function( err, result ) { ... } );

// or parse file contents
gocov.parseContent( "...",
    function( err, result ) { ... } );
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