{"name":"lcov-result-merger","version":"6.0.0","description":"Merges multiple lcov results into one","main":"index.js","types":"index.d.ts","scripts":{"lint":"eslint . --cache","test":"npm run lint && npm run test:js && npm run test:dts","test:js":"mocha --bail --recursive","test:dts":"tsd -f test/test-types/index.test-d.ts","test:coverage":"nyc --reporter=html --reporter=lcov mocha -- --recursive","release":"release-it","cleanup":"rm -rf ./.nyc_output ./coverage ./.eslintcache"},"bin":{"lcov-result-merger":"bin/lcov-result-merger.js"},"repository":{"type":"git","url":"git+https://github.com/mweibel/lcov-result-merger.git"},"homepage":"https://github.com/mweibel/lcov-result-merger","bugs":{"url":"https://github.com/mweibel/lcov-result-merger/issues"},"keywords":["lcov","mocha","coveralls","code","coverage"],"author":{"name":"Michael Weibel","email":"michael.weibel@gmail.com"},"contributors":[{"name":"M. Adam Kendall","email":"akendall@devis.com"},{"name":"Jussi Kalliokoski","email":"jussi.kalliokoski@gmail.com"},{"name":"Michael Jones","email":"mdeanjones@gmail.com"}],"license":"MIT","dependencies":{"fast-glob":"^3.3.3","yargs":"^18.0.0"},"devDependencies":{"@release-it/conventional-changelog":"^11.0.0","@types/node":"^24.12.2","@types/yargs":"^17.0.35","chai":"^6.2.2","eslint":"^10.2.1","eslint-config-prettier":"^10.1.8","eslint-plugin-n":"^17.24.0","eslint-plugin-prettier":"^5.5.5","execa":"^9.6.1","istanbul":"^0.4.5","mocha":"^11.7.5","nyc":"^18.0.0","prettier":"^3.8.3","release-it":"^20.0.1","rimraf":"^6.1.3","tsd":"^0.33.0"},"engines":{"node":">=20"},"release-it":{"plugins":{"@release-it/conventional-changelog":{"preset":"conventionalcommits","infile":"CHANGELOG.md"}},"git":{"commitMessage":"chore: release v${version}"},"github":{"release":true}},"_id":"lcov-result-merger@6.0.0","gitHead":"a4924c7df46d557ad4d384455d352c7d4f7129fd","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-RsXi/N4J9b37mu83d3L8WdCGU0jsftN6GlXaJySK6fu+zD48joHC579hpA3K4brPvwWOhbNX5NoT7mghxDi5qw==","shasum":"ce057740aabf505a8a5608da5fa94b12233055e0","tarball":"http://registry-npm.ywwl.com/lcov-result-merger/download/lcov-result-merger-6.0.0.tgz","fileCount":13,"unpackedSize":28301,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFKAO5FiZIpXcQraWrc2dkOFnLjjtoiltipd29dEqNsFAiEAxmcW/kSgn/CK0Pq/9O/NSTTEyLpS5vqVx+U7duRSAE4="}],"size":8318,"noattachment":false,"key":"/lcov-result-merger/-/lcov-result-merger-6.0.0.tgz"},"_npmUser":{"name":"mdeanjones","email":"mdeanjones@gmail.com"},"directories":{},"maintainers":[{"name":"mweibel","email":"michael.weibel@gmail.com"},{"name":"mdeanjones","email":"mdeanjones@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lcov-result-merger_6.0.0_1777461408312_0.997472196167976"},"_hasShrinkwrap":false,"readme":"# LCOV Result Merger\n\n[![npm version](https://badge.fury.io/js/lcov-result-merger.svg)](https://badge.fury.io/js/lcov-result-merger)\n![CI](https://github.com/mweibel/lcov-result-merger/actions/workflows/ci.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/mweibel/lcov-result-merger/badge.svg?branch=master)](https://coveralls.io/github/mweibel/lcov-result-merger?branch=master)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-release--it-444444.svg)](https://github.com/release-it/release-it)\n\nWhen you have multiple test suites for the same application you still want to\nhave the code coverage across all test suites.\n\nThis tool will handle this for you.\n\n> See the [Migration Notes](#migrating-notes) below if you are looking to upgrade between major versions.\n\n# Usage\n\n```bash\n./node_modules/.bin/lcov-result-merger 'FILE_PATTERN' ['OUTPUT_FILE']\n```\n\n# Examples\n\n## Use stdout\n1. Generate LCOV Code Coverage into different files, e.g. `build/coverage/coverage_X.log`\n2. Run `./node_modules/.bin/lcov-result-merger 'build/coverage/coverage_*.log'`\n3. Use the stdout to pipe it to e.g. [Coveralls](http://coveralls.io)\n4. Done.\n\n## Use merged output file\n1. Generate LCOV Code Coverage into different files, e.g. `build/coverage/coverage_X.log`\n2. Run `./node_modules/.bin/lcov-result-merger 'build/coverage/coverage_*.log' 'target/coverage/coverage_merged.log'`\n3. Done. Enjoy your merged file.\n\n## Prepend source file paths\nModify source file paths to be relative to the working directory that the merge operation was run in. Useful in\nmonorepos where each child package gathers its own metrics.\n\n```bash\n./node_modules/.bin/lcov-result-merger 'FILE_PATTERN' ['OUTPUT_FILE'] --prepend-source-files\n```\n\nSince coverage output is rarely written directly into the project root, use `--prepend-path-fix` to describe the\nrelative path between the lcov file and the project root. The default simply points to one directory up, \"..\", which\nworks well for common tools such as [NYC](https://github.com/istanbuljs/nyc) that write to a `/coverage` directory.\n\n```bash\n./node_modules/.bin/lcov-result-merger 'FILE_PATTERN' ['OUTPUT_FILE'] --prepend-source-files --prepend-path-fix \"../src\"\n```\n\n## Migrating Notes\nAdditional information about breaking changes.\n\n### Version 6\n- The `--legacy-temp-file` flag has been removed. This means that if your project is expecting an\n  errant `lcov.info` file to be created in the PWD, then it will need to be updated to instead use\n  the output file specified when running the command.\n\n- The internal usage of temp files has also been eliminated. This only effects project that are\n  directly importing the `mergeCoverageReportFiles` or `mergeCoverageReportFilesStream` functions\n  into their own code. Both of these methods now return the merged LCOV content directly, in the\n  form of a string, instead of a path to the temporary file where that content could be read.\n","publish_time":1777461408454,"_cnpm_publish_time":1777461408454,"dist-tags":{"latest":"6.0.0","rc":"6.0.0-rc.0"}}