{"id":26172136,"url":"https://github.com/swellaby/nyc-config","last_synced_at":"2026-04-22T01:32:23.340Z","repository":{"id":31467314,"uuid":"126629736","full_name":"swellaby/nyc-config","owner":"swellaby","description":"Various configurations for nyc based code coverage","archived":false,"fork":false,"pushed_at":"2023-07-18T20:24:56.000Z","size":367,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T12:54:34.873Z","etag":null,"topics":["coverage","nyc","nyc-config","nyc-configuration"],"latest_commit_sha":null,"homepage":null,"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/swellaby.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-24T18:43:03.000Z","updated_at":"2022-02-11T04:16:20.000Z","dependencies_parsed_at":"2024-08-23T21:09:46.610Z","dependency_job_id":"68ec4b8f-4ede-4833-afb2-89787b1aca29","html_url":"https://github.com/swellaby/nyc-config","commit_stats":{"total_commits":113,"total_committers":4,"mean_commits":28.25,"dds":"0.22123893805309736","last_synced_commit":"6bccbda4da53768208a9a675c8033b1ac5b22123"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swellaby/nyc-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swellaby%2Fnyc-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swellaby%2Fnyc-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swellaby%2Fnyc-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swellaby%2Fnyc-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swellaby","download_url":"https://codeload.github.com/swellaby/nyc-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swellaby%2Fnyc-config/sbom","scorecard":{"id":861832,"data":{"date":"2025-08-11","repo":{"name":"github.com/swellaby/nyc-config","commit":"6bccbda4da53768208a9a675c8033b1ac5b22123"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/swellaby/nyc-config/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/swellaby/nyc-config/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/swellaby/nyc-config/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/swellaby/nyc-config/pr.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/swellaby/nyc-config/pr.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/pr.yml:21","Warn: npmCommand not pinned by hash: .github/workflows/pr.yml:36","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T01:31:26.098Z","repository_id":31467314,"created_at":"2025-08-24T01:31:26.098Z","updated_at":"2025-08-24T01:31:26.098Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32117345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["coverage","nyc","nyc-config","nyc-configuration"],"created_at":"2025-03-11T19:53:22.614Z","updated_at":"2026-04-22T01:32:23.325Z","avatar_url":"https://github.com/swellaby.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nyc-config\n[![npmjs Badge][npmjs-version-badge]][npmjs-pkg-url]\n[![npmjs Badge][npmjs-downloads-badge]][npmjs-pkg-url]\n[![Circle CI Badge][circle-ci-badge]][circle-ci-url]\n[![license Badge][license-badge]][license-url]  \n\nOur various configurations for [nyc][nyc-url] based code coverage. Geared for our specific needs, but feel free to use it if helps you!\n\n## Installation\nInstall the nyc-config module as a dev dependency:\n```sh\nnpm i @swellaby/nyc-config --save-dev\n```\n\n## Usage\nAdd an `extends` key to your [nyc config file][nyc-config-file-url] and specify the value of the configuration you want to use:\n\nFor example, to use our default nyc configuration add the following to your `.nycrc` file:\n```json\n{\n    ...\n    \"extends\": \"@swellaby/nyc-config\",\n    ...\n}\n```\n\n## nyc Configurations\n\n### base Configuration\nOur base configuration defines a few core configuration settings:\n\n- **reporters** - `html`, `lcov`, `cobertura`, `text`, and `text-summary`\n- **cache** - `true`\n- **all** -  `true`\n- **per-file** - `true`\n- **report-dir** - `.coverage/`\n\nYou can utilize our base configuration by adding an `extends` key to your [nyc config file][nyc-config-file-url] and specifying the value of `@swellaby/nyc-config/base`. For example:\n```json\n{\n    ...\n    \"extends\": \"@swellaby/nyc-config/base\",\n    ...\n}\n```\n\n### Complete Coverage Configuration\nOur complete coverage configuration enforces 100% code coverage. It is the default configuration specified by this config module. It extends our [base configuration][base-section] with the following settings:\n- **check-coverage** - `true`\n- **lines** - `100`\n- **statements** - `100`\n- **functions** - `100`\n- **branches** - `100`\n\nThis config will be used by adding the config value to the `extends` key in your [nyc config file][nyc-config-file-url].\n```json\n{\n    ...\n    \"extends\": \"@swellaby/nyc-config\",\n    ...\n}\n```\n\n### Partial Coverage Configuration \nWe also have a configuration that enforces code coverage levels with lower threshold levels. It similarly extends our [base configuration][base-section] but uses defines the following coverage levels:\n- **check-coverage** - `true`\n- **lines** - `75`\n- **statements** - `75`\n- **functions** - `80`\n- **branches** - `70`\n\nYou can utilize our partial coverage configuration by adding an `extends` key to your [nyc config file][nyc-config-url] and specifying the value of `@swellaby/nyc-config/partial-coverage`. For example:\n```json\n{\n    ...\n    \"extends\": \"@swellaby/nyc-config/partial-coverage\",\n    ...\n}\n```\n\n## API\nAll configurations are also accessible programmatically and can be accessed via the relevant property after importing the `@swellaby/nyc-config` module. For example:\n\n```js\nconst nycConfig = require('@swellaby/nyc-config');\n\nconst baseConfig = nycConfig.baseConfig;\nconst partialCoverageConfig = nycConfig.partialCoverageConfig;\n```\n\n## License\nMIT - see license details [here][license-url]\n\n[npmjs-version-badge]: https://img.shields.io/npm/v/@swellaby/nyc-config.svg\n[npmjs-pkg-url]: https://www.npmjs.com/package/@swellaby/nyc-config\n[npmjs-downloads-badge]: https://img.shields.io/npm/dt/@swellaby/nyc-config.svg\n[circle-ci-badge]: https://circleci.com/gh/swellaby/nyc-config.svg?style=shield\n[circle-ci-url]: https://circleci.com/gh/swellaby/nyc-config\n[license-url]: https://github.com/swellaby/nyc-config/blob/master/LICENSE\n[license-badge]: https://img.shields.io/github/license/swellaby/nyc-config.svg\n[nyc-url]: https://www.npmjs.com/package/nyc\n[nyc-config-file-url]: https://www.npmjs.com/package/nyc#configuring-nyc\n[base-section]: #base-configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswellaby%2Fnyc-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswellaby%2Fnyc-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswellaby%2Fnyc-config/lists"}