{"id":15754957,"url":"https://github.com/killmenot/node-settings-config","last_synced_at":"2026-01-21T01:01:58.995Z","repository":{"id":57357058,"uuid":"59347954","full_name":"killmenot/node-settings-config","owner":"killmenot","description":"Node.js tool to load configuration depending on your environment","archived":false,"fork":false,"pushed_at":"2023-11-30T14:32:14.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T11:48:28.777Z","etag":null,"topics":["config","environment","nodejs","settings"],"latest_commit_sha":null,"homepage":"","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/killmenot.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":"2016-05-21T07:41:22.000Z","updated_at":"2018-09-20T18:05:20.000Z","dependencies_parsed_at":"2024-10-25T06:48:13.895Z","dependency_job_id":"96c4b647-6c6c-4ff0-b1eb-4fccd31ed657","html_url":"https://github.com/killmenot/node-settings-config","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"ed9d8ba256530362b6cbfe0d83199da97ae502f7"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/killmenot/node-settings-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Fnode-settings-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Fnode-settings-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Fnode-settings-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Fnode-settings-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killmenot","download_url":"https://codeload.github.com/killmenot/node-settings-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Fnode-settings-config/sbom","scorecard":{"id":560111,"data":{"date":"2025-08-11","repo":{"name":"github.com/killmenot/node-settings-config","commit":"ed9d8ba256530362b6cbfe0d83199da97ae502f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/21 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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-20T13:25:19.847Z","repository_id":57357058,"created_at":"2025-08-20T13:25:19.848Z","updated_at":"2025-08-20T13:25:19.848Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["config","environment","nodejs","settings"],"created_at":"2024-10-04T08:06:05.107Z","updated_at":"2026-01-21T01:01:58.851Z","avatar_url":"https://github.com/killmenot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# settings-config\n\nA Node.js tool to load configuration depending on your environment\n\n[![Build Status](https://travis-ci.org/killmenot/node-settings-config.svg?branch=master)](https://travis-ci.org/killmenot/node-settings-config) [![Coverage Status](https://coveralls.io/repos/github/killmenot/node-settings-config/badge.svg?branch=master)](https://coveralls.io/github/killmenot/node-settings-config?branch=master) [![Dependency Status](https://david-dm.org/killmenot/node-settings-config.svg)](https://david-dm.org/killmenot/node-settings-config) [![npm version](https://img.shields.io/npm/v/settings-config.svg)](https://www.npmjs.com/package/settings-config)\n\n\n## Install\n\n```\nnpm install settings-config --save\n\n```\n\n\n## Features\n\n * Supports `.js` and `.json` formats (`.js` has precedence on `.json`).\n * Supports external storage.\n\n\n## Usage\n\n```javascript\n'use strict';\n\nvar config = require('settings-config')()\nconsole.log(config.foo.bar);\n```\n\nUsing `NODE_ENV`\n\n```javascript\n'use strict';\n\nprocess.env.NODE_ENV = 'development'\nvar config = require('settings-config')()\nconsole.log(config.foo.bar); # can be overridden from `config/environments/development.js`\n```\n\n\n## Examples\n\n### Basic\n\nAn example of directory structure required by the tool.\n```\napp/\n  config/\n    environments/\n      staging.js\n      test.json\n    application.js\n  ...\n```\n\nThe `application.js` file is a root configuration. Additional environments are located in `environments` folder as a separate file with the same name. You can also specify the location of `config` directory directly by using `process.env.CONFIG_DIR`\n\n```\nCONFIG_DIR=path/to/config main.js\n```\n\n### Using external storage\n\nThe external storage feature is useful when you use branch deploy for your application and don't want to keep too much confuguration in your `environments` folder. In this case you can create a simple JSON file with the following structure:\n```json\n{\n  \"master\": {\n    \"db\": 0\n  },\n  \"develop\": {\n    \"db\": 1\n  },\n  \"feature-login\": {\n    \"db\": 1\n  }\n}\n```\nAnd place this file in the directory that contains branches\n\n```\nwww/\n  master/\n    config/\n      application.js\n  develop/\n    config/\n      application.js\n  feature-login/\n    config/\n      application.js\n  server.json\n```\n\nYou can also specify the location of `external storage` file directly by using `process.env.EXTERNAL_STORAGE`\n\n\n## 0.1.5 -\u003e 0.2.0\n\n\n```\n// 0.1.5.\nvar config = require('settings-config');\n```\n\n```\n// 0.2.0.\nvar config = require('settings-config')();\n```\n\n\n## Licence\n\n    The MIT License (MIT) Alexey Kucherenko\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillmenot%2Fnode-settings-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillmenot%2Fnode-settings-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillmenot%2Fnode-settings-config/lists"}