{"id":18347890,"url":"https://github.com/collaborne/github-badges","last_synced_at":"2025-04-09T23:26:31.421Z","repository":{"id":65151141,"uuid":"583655034","full_name":"Collaborne/github-badges","owner":"Collaborne","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-13T11:13:51.000Z","size":288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T22:38:51.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Collaborne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-30T13:15:16.000Z","updated_at":"2023-01-02T07:16:19.000Z","dependencies_parsed_at":"2024-10-25T22:30:36.287Z","dependency_job_id":"f32ee5c8-5979-4873-a130-6da94ace5db1","html_url":"https://github.com/Collaborne/github-badges","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.15384615384615385","last_synced_commit":"b621361b179ab71ced115072633762a58042e84f"},"previous_names":["collaborne/carrot-script-tasks"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgithub-badges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgithub-badges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgithub-badges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgithub-badges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Collaborne","download_url":"https://codeload.github.com/Collaborne/github-badges/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127971,"owners_count":21052323,"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":[],"created_at":"2024-11-05T21:15:30.339Z","updated_at":"2025-04-09T23:26:31.397Z","avatar_url":"https://github.com/Collaborne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @collaborne/github-badges\n\nCreate SVG badges\n\n## Install\n\n```bash\nnpm install --save @collaborne/github-badges\n```\n\n## Usage\n\n- import in JS/TS files\n\n```ts\nimport { createCoverageBadge } from '@collaborne/github-badges'\n\n// Using default params\ncreateCoverageBadge();\n\n\n// Using different input path for coverage summary:\nconst inputPath= path.resolve(__dirname, 'my-other-folder', 'coverage-summary.json');\n\n// Using different output file path for coverage badge:\nconst outputPath = path.resolve(__dirname,'my-other-folder', 'coverage', 'coverage-summary.json');\n\n// Creating coverage badge SVG's(get summary from inputPath, and saved SVG's in the output path)\ncreateCoverageBadge(inputPath, outputPath)\n\n\n\n```\n\n- as a script in **package.json**\n\n```json\n...\n\nscripts :{\n    ...\n    \"predeploy:coverage-badges\": \"create-coverage-badges\"\n    ...\n}\n...\n\n  ```\n\nBy default uses for coverage report input: **coverage/coverage-summary.json** , and outputs created svg's into the same **coverage** folder.\n\nFlags for input: `--i` or `-inputPath`\n\nFlags for output: `--o`, `--d`, `-outputPath` or `-dist`\n\n## License\n\n(c) 2023 Collaborne B.V. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollaborne%2Fgithub-badges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcollaborne%2Fgithub-badges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollaborne%2Fgithub-badges/lists"}