{"id":15285427,"url":"https://github.com/oresoftware/node-check-fast","last_synced_at":"2026-01-05T06:21:33.936Z","repository":{"id":57134198,"uuid":"82499485","full_name":"ORESoftware/node-check-fast","owner":"ORESoftware","description":"Run `node -c` quickly on a project or directory.","archived":false,"fork":false,"pushed_at":"2019-03-13T03:07:11.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T09:51:47.951Z","etag":null,"topics":["checksum","mocha","nodejs","smoke-test","smoketest","suman","testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ORESoftware.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-20T00:17:03.000Z","updated_at":"2019-03-13T03:07:13.000Z","dependencies_parsed_at":"2022-09-02T09:27:23.291Z","dependency_job_id":null,"html_url":"https://github.com/ORESoftware/node-check-fast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fnode-check-fast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fnode-check-fast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fnode-check-fast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fnode-check-fast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ORESoftware","download_url":"https://codeload.github.com/ORESoftware/node-check-fast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168892,"owners_count":20571803,"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":["checksum","mocha","nodejs","smoke-test","smoketest","suman","testing","testing-tools"],"created_at":"2024-09-30T15:04:48.187Z","updated_at":"2026-01-05T06:21:33.889Z","avatar_url":"https://github.com/ORESoftware.png","language":"JavaScript","readme":"\n# @oresoftware/ncf (Node Check Fast)\n\n[![Version](https://img.shields.io/npm/v/@oresoftware/ncf.svg?colorB=green)](https://www.npmjs.com/package/@oresoftware/ncf)\n\n\n\u003e\n\u003e Running `node -c` for all the files in your project can take a minute.\n\u003e This project does what it says - use the node.js interface, or the command line interface.\n\u003e\n\n### Installation\n\n\u003e\n\u003e Local (for programmatic usage)\n\u003e ``` npm install -D '@oresoftware/ncf' ```\n\u003e\n\u003e Global (for command line tools, this makes more sense usually)\n\u003e ``` npm install -g '@oresoftware/ncf' ```\n\u003e\n\n### In the beginning:\n\n```bash\nfind -path \"*.js\" -type f -not -path \"**/node_modules/**\" | ncf --stdin\n```\n\nYeah don't do that. We can use sane defaults instead.\nInstead do this:\n\n```bash\n ncf -c 9    # by default we search with the above settings\n```\n\n## Programmatic usage with Node.js:\n\n```js\n\nimport ncf from '@oresoftware/ncf';  \n// likewise: const {ncf} = require('@oresoftware/ncf');\n\n\nncf({\n  \n  root: process.cwd(),   // required: an absolute path representing where to start searching for .js files\n  paths: [],             // optional: paths to match\n  notPaths: [],          // optional: paths not to match\n  concurrency: 8,        // optional: number of processes to run at a time\n  maxDepth: 10,          // optional: max number of directories to drill into it\n  verbosity: 1\n  \n}, function(err, results){\n    \n  // if err is present, a file failed the \"node -c\" check.\n  // results will tell you specifically which files failed\n  // if results is an empty array, no files were checked/matched.\n  \n})\n\n```\n\nDefault values used for both command line and JS usage:\n\n```\n  root: process.cwd(),   \n  paths: ['*.js'],             \n  notPaths: ['**/node_modules/**'],        \n  concurrency: os.cpus().length || 6,\n  maxDepth: 12,          \n  verbosity: 2\n\n```\n\n\n## Command line interface:\n\n```bash\nncf --dir . --not-paths=**/test/** --not-paths=**/node_modules/** --verbosity 3 --concurrency=8\n```\n\nthe terse version of the above is:\n\n```bash\nncf -d . --np=**/test/** --np=**/node_modules/** --v 3 -c 8\n```\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fnode-check-fast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foresoftware%2Fnode-check-fast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fnode-check-fast/lists"}