{"id":21565125,"url":"https://github.com/cfware/cfware-nyc","last_synced_at":"2025-03-18T05:17:31.332Z","repository":{"id":57101044,"uuid":"139269252","full_name":"cfware/cfware-nyc","owner":"cfware","description":"NYC configurations used by my projects.","archived":false,"fork":false,"pushed_at":"2023-10-15T14:56:50.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T21:16:00.166Z","etag":null,"topics":[],"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/cfware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-30T17:56:22.000Z","updated_at":"2022-08-13T17:38:52.000Z","dependencies_parsed_at":"2024-06-21T19:05:31.597Z","dependency_job_id":"c1062dd6-944c-4b65-9857-f1b884070a49","html_url":"https://github.com/cfware/cfware-nyc","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcfware-nyc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcfware-nyc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcfware-nyc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fcfware-nyc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/cfware-nyc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160055,"owners_count":20408021,"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-24T10:18:30.873Z","updated_at":"2025-03-18T05:17:31.305Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# @cfware/nyc [![NPM Version][npm-image]][npm-url]\n\nNYC configurations used by my projects.\n\n## Usage\n\nCreate `nyc.config.cjs` in your project:\n```js\n'use strict';\n\nmodule.exports = require('@cfware/nyc')\n  .all()\n  .checkCoverage()\n  .exclude('build/**');\n```\n\nAll instance methods are also exposed static methods which construct a new object and\nrun the method.  For example:\n\n```js\nconst assert = require('assert');\nconst NYCConfig = require('@cfware/nyc');\nconst config1 = NYCConfig.all();\nconst config2 = new NYCConfig().all();\n\n(async () {\n  // This will pass\n  assert.deepStrictEqual(await config1, await config2);\n})();\n```\n\nAll methods return `this` to allow chaining.\n\n### new NYCConfig(customSettings = {})\n\nConstruct a new instance overwriting some nyc configuration options.  No validation is\nperformed.  It is not needed to explicitly call the constructor unless:\n* You need to eliminate some default `exclude` globs.\n* You need to provide options not directly supported by this module.\n\n### NYCConfig.defaultExclude\n\nThis property is static only, returns a copy of the default `exclude` list.\n\nThis is the [nyc default excludes] with some additional paths:\n\n* `fixtures/**`\n* `helpers/**`\n* `tap-snapshots/**`\n\n### NYCConfig#all(enable = true)\n\nEnable or disable `all`.  Enabling can cause difficulties in current versions of node.js\nwhen the repository contains ES modules which are not ignored.\n\n### NYCConfig#checkCoverage(enable = true)\n\nEnable or disable `checkCoverage`.\n\n### NYCConfig#perFile(enable = true)\n\nEnable or disable `perFile` (only effective if `checkCoverage` is enabled)\n\n### NYCConfig#require(...modules)\n\nAppend the `require` configuration array.\n\n### NYCConfig#include(...globs)\n\nAppend the `include` configuration array.\n\n### NYCConfig#exclude(...globs)\n\nAppend the `exclude` configuration array.\n\n### NYCConfig#excludeNodeModules(enable = true)\n\nEnable or disable `excludeNodeModules`.\n\n### NYCConfig#reporter(...reporters)\n\nAdd one or more coverage reporters to run.  Note the first call to this function will replace\nthe nyc default.\n\n## Defaults\n\nThe defaults provided by this module are:\n```js\n{\n  tempDir: 'coverage/.nyc_output',\n  require: [],\n  include: [],\n  exclude: NYCConfig.defaultExclude,\n  lines: 100,\n  statements: 100,\n  functions: 100,\n  branches: 100\n}\n```\n\nnyc will apply additional defaults for keys not listed here.\n\n[npm-image]: https://img.shields.io/npm/v/@cfware/nyc.svg\n[npm-url]: https://npmjs.org/package/@cfware/nyc\n[nyc default excludes]: https://github.com/istanbuljs/schema/blob/master/default-exclude.js\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fcfware-nyc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Fcfware-nyc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fcfware-nyc/lists"}