
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@technote-space/clover-json
Advanced tools
Parse clover XML coverage reports to JSON, using the same format as lcov-parse
Parse clover report files, and return a JSON representation in a lcov-parse compatible manner.
npm i @technote-space/clover-jsonyarn add @technote-space/clover-jsonimport { parseFile, parseContent } from "@technote-space/clover-json";
async function run(): Promise<void> {
// Parse by file path
const json1 = await parseFile('filepath.xml');
// Parse by file contents
const json2 = await parseContent('<?xml version="1.0" ?><coverage>...</coverage>');
}
run();
[
{
"file": "coveralls/lib/client.js",
"functions": {
"details": [
{
"hit": 2,
"line": 5,
"name": "upload"
}
],
"found": 1,
"hit": 1
},
"lines": {
"details": [
{
"hit": 2,
"line": 6
},
{
"hit": 2,
"line": 7
},
{
"hit": 2,
"line": 8
},
{
"hit": 2,
"line": 9
}
],
"found": 4,
"hit": 4
},
"title": "Client"
},
{
"file": "coveralls/lib/configuration.js",
"functions": {
"details": [
{
"hit": 4,
"line": 6,
"name": "fromEnvironment"
}
],
"found": 1,
"hit": 1
},
"lines": {
"details": [
{
"hit": 4,
"line": 7
},
{
"hit": 4,
"line": 8
},
{
"hit": 2,
"line": 9
},
{
"hit": 2,
"line": 10
},
{
"hit": 4,
"line": 11
},
{
"hit": 2,
"line": 12
},
{
"hit": 2,
"line": 13
},
{
"hit": 4,
"line": 14
},
{
"hit": 4,
"line": 15
}
],
"found": 9,
"hit": 9
},
"title": "Configuration"
},
{
"file": "coveralls/lib/git_commit.js",
"functions": {
"details": [
{
"hit": 2,
"line": 6,
"name": "toJSON"
}
],
"found": 1,
"hit": 1
},
"lines": {
"details": [
{
"hit": 2,
"line": 7
},
{
"hit": 2,
"line": 8
},
{
"hit": 2,
"line": 9
},
{
"hit": 2,
"line": 10
},
{
"hit": 2,
"line": 11
},
{
"hit": 0,
"line": 12
},
{
"hit": 0,
"line": 13
},
{
"hit": 2,
"line": 14
},
{
"hit": 2,
"line": 15
}
],
"found": 9,
"hit": 7
},
"title": "GitCommit"
}
]
FAQs
Parse clover XML coverage reports to JSON, using the same format as lcov-parse
We found that @technote-space/clover-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.