node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป

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