{"id":27010420,"url":"https://github.com/friedemannsommer/lcov-parser","last_synced_at":"2025-04-04T11:05:02.102Z","repository":{"id":190498660,"uuid":"681814469","full_name":"friedemannsommer/lcov-parser","owner":"friedemannsommer","description":"A LCOV file parser.","archived":false,"fork":false,"pushed_at":"2025-03-21T17:50:27.000Z","size":3115,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T16:55:49.537Z","etag":null,"topics":["lcov","parser","typescript"],"latest_commit_sha":null,"homepage":"https://friedemannsommer.github.io/lcov-parser/","language":"TypeScript","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/friedemannsommer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-22T20:16:00.000Z","updated_at":"2025-03-14T18:13:22.000Z","dependencies_parsed_at":"2023-08-24T23:12:27.732Z","dependency_job_id":"d3a54eee-1888-4d15-9a9d-d641e629e617","html_url":"https://github.com/friedemannsommer/lcov-parser","commit_stats":null,"previous_names":["friedemannsommer/lcov-parser"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedemannsommer%2Flcov-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedemannsommer%2Flcov-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedemannsommer%2Flcov-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedemannsommer%2Flcov-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friedemannsommer","download_url":"https://codeload.github.com/friedemannsommer/lcov-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166174,"owners_count":20894654,"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":["lcov","parser","typescript"],"created_at":"2025-04-04T11:05:01.636Z","updated_at":"2025-04-04T11:05:02.088Z","avatar_url":"https://github.com/friedemannsommer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LCOV parser\n\nA LCOV file parser, written in TypeScript.\n\n[![npm](https://img.shields.io/npm/v/%40friedemannsommer%2Flcov-parser?style=flat\u0026logo=npm)][npm]\n[![CI](https://github.com/friedemannsommer/lcov-parser/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/friedemannsommer/lcov-parser/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/friedemannsommer/lcov-parser/graph/badge.svg?token=DXR26JEVQC)](https://codecov.io/gh/friedemannsommer/lcov-parser)\n![node-current](https://img.shields.io/node/v/%40friedemannsommer%2Flcov-parser?style=flat\u0026logo=nodedotjs)\n\n\u003e This parser is built for the LCOV trace file format, which can be found\n\u003e here: [github.com/linux-test-project/lcov/man/geninfo.1][lcov-format].\n\u003e\n\u003e You're able to use different field names, if necessary.\n\n## Installation\n\n```shell\nnpm install --save-dev --save-exact @friedemannsommer/lcov-parser\n```\n\nor the shorter equivalent:\n\n```shell\nnpm i -DE @friedemannsommer/lcov-parser\n```\n\n## Basic usage\n\n[`string`][string-glossary] data\n\n```typescript\nimport lcovParser from \"@friedemannsommer/lcov-parser/sync\"\n\nconst sections = lcovParser({ from: \"\u003cLCOV data\u003e\" })\n```\n\n[`Buffer`][buffer-docs] / [`ArrayBuffer`][array-buffer-docs]\n\n```typescript\nimport lcovParser from \"@friedemannsommer/lcov-parser/sync\"\n\nconst sections = lcovParser({ from: Buffer.from(\"\u003cLCOV data\u003e\") })\n```\n\n[`Readable`][readable-docs] streams\n\n```typescript\nimport lcovParser from \"@friedemannsommer/lcov-parser\"\nimport {createReadStream} from \"node:fs\"\n\nconst lcovFile = createReadStream(new URL(\"path/to/lcov.info\", import.meta.url))\nconst sections = await lcovParser({ from: lcovFile })\n```\n\nFor more details, take a look at the documentation,\nwhich can be found here: [friedemannsommer.github.io/lcov-parser][package-docs].\n\n[array-buffer-docs]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n\n[buffer-docs]: https://nodejs.org/api/buffer.html#class-buffer\n\n[lcov-format]: https://github.com/linux-test-project/lcov/blob/3decc12ab1e7b34d2860393e2f40f0e1057d5c16/man/geninfo.1#L989-L1171\n\n[npm]: https://www.npmjs.com/package/@friedemannsommer/lcov-parser\n\n[package-docs]: https://friedemannsommer.github.io/lcov-parser/\n\n[readable-docs]: https://nodejs.org/api/stream.html#readable-streams\n\n[string-glossary]: https://developer.mozilla.org/en-US/docs/Glossary/String\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedemannsommer%2Flcov-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriedemannsommer%2Flcov-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedemannsommer%2Flcov-parser/lists"}