{"id":15062707,"url":"https://github.com/denrox/incremental-config","last_synced_at":"2025-03-15T14:25:06.830Z","repository":{"id":57273319,"uuid":"112723870","full_name":"Denrox/incremental-config","owner":"Denrox","description":"Incremental config sequences for nodejs. Allows to get a combined config object from different sources","archived":false,"fork":false,"pushed_at":"2017-12-04T10:27:10.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T17:11:15.083Z","etag":null,"topics":[],"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/Denrox.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-01T09:54:39.000Z","updated_at":"2022-08-23T08:17:52.000Z","dependencies_parsed_at":"2022-09-17T05:11:07.237Z","dependency_job_id":null,"html_url":"https://github.com/Denrox/incremental-config","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/Denrox%2Fincremental-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Denrox%2Fincremental-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Denrox%2Fincremental-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Denrox%2Fincremental-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Denrox","download_url":"https://codeload.github.com/Denrox/incremental-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235064272,"owners_count":18930088,"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-09-24T23:45:04.147Z","updated_at":"2025-01-22T04:31:10.636Z","avatar_url":"https://github.com/Denrox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n  Requires nodejs \u003e= 7.6\n\n```bash\n$ npm i incremental-config\n```\n\n## Features\n\n  * Combines configuration object from different sources\n  * Supports YAML, JSON files and common JS objects\n  * Allows to adjust priority of some config source by changing it's position in sequence\n\n## Examples\n\n  Here is a simple usage example:\n\n```bash\n$ npm i incremental-config\n```\n\n```javascript\nasync function main() {\n  let ic = require('incremental-config'),\n    config = null;\n\n  config = await ic([\n    //following configuration source will have the lowest priority\n    {\n      type: 'json',\n      source: {\n        path: './test.json',\n        charset: 'latin1'\n      }\n    },\n    //higher priority for this one\n    {\n      type: 'yml',\n      source: {\n        path: './test.yml' //utf8 charset is applied when none specified\n      }\n    },\n    //this source will have the highest priority.\n    //it will override properties with same names from other sources\n    {\n      source: {\n        testValue: 'someValue'\n      }\n    }\n  ]);\n\n  console.log(config);\n}\n\nmain();\n```\n\n  The result of this code will be a config object which has merged contents of all listed sources.\n\n## License\n\n  [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenrox%2Fincremental-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenrox%2Fincremental-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenrox%2Fincremental-config/lists"}