node package manager

json2lcov

json2lcov

NPM version Build Status Coverage Status Dependency Status Stories in Ready

The report data of a json-cov format are changed into a lcov format.
A conversion result is string.

Install

npm install json2lcov --save-dev

How to use

var jsoncovToLcov = require('json2lcov');
var lcov = jsoncovToLcov(jsonCovResult);

console.log(lcov);

UnitTest

npm install -g mocha mocha-lcov-reporter jscoverage
npm install
npm test