Parse cobertura coverage to JSON, based on output from lcov-parse
npm install cobertura-parsejs
var cob = require( "cobertura-parse" );
// parse by file path
cob.parseFile( "filepath.xml", function( err, result ) { ... } );
// or parse file contents
cob.parseContent( "... ",
function( err, result ) { ... } );
``