{"id":15767813,"url":"https://github.com/bubkoo/loadrc","last_synced_at":"2025-03-31T11:13:35.690Z","repository":{"id":66336016,"uuid":"55292336","full_name":"bubkoo/loadrc","owner":"bubkoo","description":"Load runtime configuration files for your module.","archived":false,"fork":false,"pushed_at":"2016-04-12T13:24:12.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-05T13:41:23.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/loadrc","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/bubkoo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-02T12:01:16.000Z","updated_at":"2016-04-10T03:18:55.000Z","dependencies_parsed_at":"2023-07-21T17:36:07.304Z","dependency_job_id":null,"html_url":"https://github.com/bubkoo/loadrc","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.09523809523809523,"last_synced_commit":"5658adc80a4c17956cb5c668b9aa6cee6a545fc2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Floadrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Floadrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Floadrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Floadrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubkoo","download_url":"https://codeload.github.com/bubkoo/loadrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458004,"owners_count":20780677,"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-10-04T13:41:16.791Z","updated_at":"2025-03-31T11:13:35.670Z","avatar_url":"https://github.com/bubkoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loadrc \n\n\u003e Load runtime configuration files for your module.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/bubkoo/loadrc/blob/master/LICENSE) \n\nMany NodeJS modules have `**rc**` [files](http://stackoverflow.com/questions/11030552/what-does-rc-mean-in-dot-files), such as `.babelrc`, `.eslintrc.yml`, etc. \n\nUse `loadrc` to parse your `rc` files into JavaScript object.\n\n**Supported files:**\n\n- JavaScript Module\n- Yaml file\n- JSON file\n- Legacy file, such as `.config`\n- package.json\n\n\n`loadrc` will try to load these files by the listed order, stop **until** any of them loaded.\n\n \n## Install\n\n```\n$ npm install loadrc --save\n```\n\n## Usage\n\n```js\nvar loadrc = require('loadrc');\nvar config = loadrc.load(basename, rootDir);\n\n// example\n// -------\n// try to load these files order by order: \n// - .congifrc.js\n// - .congifrc.yaml\n// - .congifrc.yml\n// - .congifrc.json\n// - .congifrc\n// - load \"package.json\" and return \"config\" section\nvar config = loadrc.load('configrc');\n```\n\n# Contributing\n \nPull requests and stars are highly welcome. \n\nFor bugs and feature requests, please [create an issue](https://github.com/bubkoo/loadrc/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Floadrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubkoo%2Floadrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Floadrc/lists"}