### Installing nyc-merge Globally via npm (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This command installs the nyc-merge command-line tool globally on your system using the npm package manager. This allows you to run `nyc-merge` directly from any terminal window. Requires Node.js (v18+) and npm to be installed. ```bash npm install -g nyc-merge ``` -------------------------------- ### Merging Coverage Files with Specified Concurrency (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This command demonstrates how to use the `--concurrency` option to limit the number of files processed in parallel by nyc-merge. In this example, it sets the concurrency to 4 while merging files from the `coverage` directory. Requires nyc-merge to be installed and runnable. ```bash nyc-merge --out merged-coverage.json --concurrency 4 "coverage/**/coverage-final.json" ``` -------------------------------- ### Installing nyc-merge as Dev Dependency via npm (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This command installs the nyc-merge package as a development dependency within your current Node.js project. This is useful when integrating nyc-merge into project scripts or build processes. Requires Node.js (v18+) and npm to be installed in the project directory. ```bash npm install nyc-merge --save-dev ``` -------------------------------- ### Merging Coverage Files with Multiple Glob Patterns (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This command shows how to merge coverage reports from different directories. It uses two glob patterns to find `coverage-final.json` files under both the `coverage` and `test-coverage` directories and combines them into `merged-coverage.json`. Requires nyc-merge to be installed and runnable. ```bash nyc-merge --out merged-coverage.json "coverage/**/coverage-final.json" "test-coverage/**/coverage-final.json" ``` -------------------------------- ### Merging Coverage Files with Single Glob Pattern (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This command demonstrates how to use nyc-merge to find and merge all files named `coverage-final.json` located within any subdirectories under the `coverage` folder, saving the result to `merged-coverage.json`. Requires nyc-merge to be installed and runnable. ```bash nyc-merge --out merged-coverage.json "coverage/**/coverage-final.json" ``` -------------------------------- ### Using nyc-merge Command Line Syntax (bash) Source: https://github.com/baryshevrs/nyc-merge/blob/main/README.md This snippet shows the general command-line syntax for running the nyc-merge tool. It requires the `--out` option to specify the output file and one or more glob patterns to find input coverage files. The `--concurrency` option is optional. ```bash nyc-merge --out [--concurrency ] [ ...] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.