{"id":13903228,"url":"https://github.com/nswbmw/config-lite","last_synced_at":"2025-07-14T15:33:17.743Z","repository":{"id":30554078,"uuid":"34108843","full_name":"nswbmw/config-lite","owner":"nswbmw","description":"A super simple \u0026 flexible \u0026 useful config module.","archived":false,"fork":false,"pushed_at":"2023-11-21T03:50:02.000Z","size":16,"stargazers_count":88,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T16:38:29.723Z","etag":null,"topics":["config","configuration","toml","yaml"],"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/nswbmw.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"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":"2015-04-17T09:42:54.000Z","updated_at":"2025-02-07T10:03:04.000Z","dependencies_parsed_at":"2024-06-18T16:43:20.811Z","dependency_job_id":null,"html_url":"https://github.com/nswbmw/config-lite","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.1875,"last_synced_commit":"325b8c1b2e3dd5ffc945bde51f3c45efed4161fe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nswbmw/config-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nswbmw%2Fconfig-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nswbmw%2Fconfig-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nswbmw%2Fconfig-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nswbmw%2Fconfig-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nswbmw","download_url":"https://codeload.github.com/nswbmw/config-lite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nswbmw%2Fconfig-lite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265312016,"owners_count":23745177,"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":["config","configuration","toml","yaml"],"created_at":"2024-08-06T22:01:53.420Z","updated_at":"2025-07-14T15:33:17.721Z","avatar_url":"https://github.com/nswbmw.png","language":"JavaScript","funding_links":[],"categories":["yaml"],"sub_categories":[],"readme":"## config-lite\n\nA super simple \u0026 flexible \u0026 intuitive config module, support `yaml` \u0026 `toml`.\n\n### Install\n\n```bash\n$ npm i config-lite --save\n```\n\n### Usage\n\n```js\nconst config = require('config-lite')(__dirname);\n```\n\nor:\n\n```js\nconst config = require('config-lite')({\n  filename: 'test',\n  config_basedir: __dirname,\n  config_dir: 'config'\n});\n```\n\n### Options\n\n- filename: config file name, default: `default`, support: `['.js', '.json', '.node', '.yaml', '.yml', '.toml']`.\n- config_basedir: directory for begining bubbling find config directory.\n- config_dir: config directory name, default: `config`.\n- config: default config object that overwrite config file.\n\n### Priority\n\nenvironment option \u003e custom option \u003e default option\n\nFor example:\n\n```bash\n$ NODE_ENV=production NODE_CONFIG='{\"port\":3000}' node app.js\n```\n\nloading order:\n\n`NODE_CONFIG='{\"port\":3000}'` \u003e opt.config \u003e production config file \u003e default config file\n\n### Environment Variables\n\n- NODE_ENV -\u003e filename\n- CONFIG_BASEDIR || NODE_CONFIG_BASEDIR -\u003e config_dirname\n- CONFIG_DIR || NODE_CONFIG_DIR -\u003e config_dir\n- CONFIG || NODE_CONFIG -\u003e config\n\n### Test\n\n```bash\n$ npm test\n```\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnswbmw%2Fconfig-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnswbmw%2Fconfig-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnswbmw%2Fconfig-lite/lists"}