{"id":42847278,"url":"https://github.com/animatedcreativity/node-file-config","last_synced_at":"2026-01-30T11:58:58.181Z","repository":{"id":57311340,"uuid":"176869548","full_name":"animatedcreativity/node-file-config","owner":"animatedcreativity","description":"Automatically read config from files for a project. If changes are made to the config files, a new copy of config is fetched next time.","archived":false,"fork":false,"pushed_at":"2019-04-15T15:33:14.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"glitch","last_synced_at":"2025-10-20T05:50:47.642Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/animatedcreativity.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":"2019-03-21T04:24:30.000Z","updated_at":"2019-04-15T15:33:15.000Z","dependencies_parsed_at":"2022-09-06T04:40:43.291Z","dependency_job_id":null,"html_url":"https://github.com/animatedcreativity/node-file-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/animatedcreativity/node-file-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatedcreativity%2Fnode-file-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatedcreativity%2Fnode-file-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatedcreativity%2Fnode-file-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatedcreativity%2Fnode-file-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/animatedcreativity","download_url":"https://codeload.github.com/animatedcreativity/node-file-config/tar.gz/refs/heads/glitch","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/animatedcreativity%2Fnode-file-config/sbom","scorecard":{"id":196869,"data":{"date":"2025-08-11","repo":{"name":"github.com/animatedcreativity/node-file-config","commit":"3be1c753e5e245447aec9b4434026c811f1c874b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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/13 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":-1,"reason":"no workflows found","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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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 'glitch'"],"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"}}]},"last_synced_at":"2025-08-16T21:58:21.261Z","repository_id":57311340,"created_at":"2025-08-16T21:58:21.261Z","updated_at":"2025-08-16T21:58:21.261Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T11:55:24.701Z","status":"ssl_error","status_checked_at":"2026-01-30T11:54:13.194Z","response_time":66,"last_error":"SSL_read: 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":[],"created_at":"2026-01-30T11:58:58.054Z","updated_at":"2026-01-30T11:58:58.164Z","avatar_url":"https://github.com/animatedcreativity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-file-config\n\nAutomatically read config from files for a project. If changes are made to the config files, a new copy of config is fetched next time.\n\n**Usage:**\n\n```\nvar fileConfig = require(\"node-file-config\");\nvar config = new fileConfig(\"\u003cproject_name\u003e\");\nconsole.log(config.get(userConfig, files));\n```\n\n- `userConfig`: Optional. If any user config is provided it will not be overridden and will just combine with the config read from the files.\n- `files`: Additional config files array if you want to look for config in more files.\n\nThe module checks for these config files automatically even if no additional files are provided:\n\n- ../../\u003cproject_folder_name\u003e.js\n- ../\u003cproject_folder_name\u003e.js\n- ./\u003cproject_folder_name\u003e.js\n- ../../\u003cproject_name\u003e.js\n- ../\u003cproject_name\u003e.js\n- ./\u003cproject_name\u003e.js\n- ./config.js\n- path.dirname(require.main.filename) + /\u003cproject_name\u003e.js\n- path.dirname(require.main.filename) + /config.js\n- __dirname + \u003cproject_name\u003e.js\n- __dirname + config.js\n\nThe priority of config is decided in the same order. But, if you specify extra config `files` as mentioned above, they will have top priority in the order of array provided.\n\nAll data gets combined with `userConfig` from all the found config files.\n\n---------------------------------------\n\n**Example:**\n\nFiles...\n\n../../\u003cproject_name\u003e.js\n\n```\nexports = module.exports = function() {\n  return {\n    test1: \"test123\", // different than user config, check below\n    test2: \"test456\", // different than user config, check below\n    test3: \"test3\"\n  }\n};\n```\n\n./\u003cproject_name\u003e.js\n\n```\nexports = module.exports = function() {\n  return {\n    test3: \"test10\", // different than the previous config file\n    test4: \"test4\",\n    test5: \"test5\"\n  }\n};\n```\n\n./config.js\n\n```\nexports = module.exports = function() {\n  return {\n    test5: \"test50\", // different than the previous config file\n    test6: \"test6\",\n    test7: \"test7\"\n  }\n};\n```\n\nLet's fetch...\n\n```\nvar fileConfig = require(\"node-file-config\");\nvar config = new fileConfig(\"\u003cproject_name\u003e\");\nconsole.log(config.get({test1: \"test1\", test2: \"test2\"}));\n```\n\nWill give...\n\n```\n{\n  test1: \"test1\",\n  test2: \"test2\",\n  test3: \"test3\",\n  test4: \"test4\",\n  test5: \"test5\",\n  test6: \"test6\",\n  test7: \"test7\"\n}\n```\n\nNow, let's say you made changes on the go...\n\n../../\u003cproject_name\u003e.js\n\n```\nexports = module.exports = function() {\n  return {\n    test1: \"test123\", // different than user config, check below\n    test2: \"test456\", // different than user config, check below\n    test3: \"test3\",\n    test5: \"testChanged\",\n    test8: \"testNew\"\n  }\n};\n```\n\nWhen fetching again next time while project is still running...\n\n\n```\nconsole.log(config.get({test1: \"test1\", test2: \"test2\"}));\n```\n\nWill give...\n\n```\n{\n  test1: \"test1\",\n  test2: \"test2\",\n  test3: \"test3\",\n  test4: \"test4\",\n  test5: \"testChanged\",\n  test6: \"test6\",\n  test7: \"test7\",\n  test8: \"testNew\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedcreativity%2Fnode-file-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanimatedcreativity%2Fnode-file-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedcreativity%2Fnode-file-config/lists"}