{"id":25238048,"url":"https://github.com/shaunthegeek/coverage-badge","last_synced_at":"2025-04-05T18:47:21.262Z","repository":{"id":45956727,"uuid":"427933963","full_name":"shaunthegeek/coverage-badge","owner":"shaunthegeek","description":"create badge from test coverage reports","archived":false,"fork":false,"pushed_at":"2021-12-01T11:26:52.000Z","size":508,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T16:40:20.550Z","etag":null,"topics":["badge","cli","coverage","test"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/test-coverage-badge","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaunthegeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-14T13:18:41.000Z","updated_at":"2021-11-29T02:33:24.000Z","dependencies_parsed_at":"2022-08-28T17:13:13.508Z","dependency_job_id":null,"html_url":"https://github.com/shaunthegeek/coverage-badge","commit_stats":null,"previous_names":["shaunthegeek/coverage-badge","sinkcup/coverage-badge"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunthegeek%2Fcoverage-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunthegeek%2Fcoverage-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunthegeek%2Fcoverage-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunthegeek%2Fcoverage-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaunthegeek","download_url":"https://codeload.github.com/shaunthegeek/coverage-badge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385703,"owners_count":20930600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["badge","cli","coverage","test"],"created_at":"2025-02-11T16:25:03.711Z","updated_at":"2025-04-05T18:47:21.230Z","avatar_url":"https://github.com/shaunthegeek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test coverage badge\n[![CI](https://github.com/sinkcup/coverage-badge/actions/workflows/ci.yml/badge.svg)](https://github.com/sinkcup/coverage-badge/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/sinkcup/coverage-badge/branch/main/graph/badge.svg?token=VQTY6VvfTf)](https://codecov.io/gh/sinkcup/coverage-badge)\n\ncreate coverage badge by parsing test coverage reports.\n\n## Usage\n\n### help\n\n```shell\nnpx test-coverage-badge --help\n```\n\n![image](https://user-images.githubusercontent.com/4971414/143799539-7f8fc90d-edc2-4bb3-9735-75e101a0743e.png)\n\n### format\n\n```shell\nnpx test-coverage-badge --format clover \\\n  ./coverage/clover.xml\n```\n\n```shell\nnpx test-coverage-badge --format jacoco-xml \\\n  ./build/reports/jacoco/test/jacocoTestReport.xml\n```\n\n### output format\n\npng(default): ![image](https://user-images.githubusercontent.com/4971414/142746070-76763e63-2d0a-469d-a377-e55cea63b2e1.png)\n\nsvg:\n\n```shell\nnpx test-coverage-badge --format clover \\\n  --output-format svg \\\n  ./coverage/clover.xml\n```\n\ntext:\n\n```shell\nnpx test-coverage-badge --format jacoco-xml \\\n  --output-format text \\\n  ./build/reports/jacoco/test/jacocoTestReport.xml\n```\n\n```text\n80%\n```\n\n### output file\n\ndefault: `./coverage.png` or `./coverage.svg`\n\ncustom:\n\n```shell\nnpx test-coverage-badge --format clover \\\n  --output ./coverage/coverage.png \\\n  ./coverage/clover.xml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunthegeek%2Fcoverage-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaunthegeek%2Fcoverage-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunthegeek%2Fcoverage-badge/lists"}