{"id":15534957,"url":"https://github.com/mansona/ember-get-config","last_synced_at":"2025-10-08T07:09:22.319Z","repository":{"id":37091294,"uuid":"45654852","full_name":"mansona/ember-get-config","owner":"mansona","description":"Get `config/environment` from anywhere, even addons!!!","archived":false,"fork":false,"pushed_at":"2024-07-18T12:38:04.000Z","size":2062,"stargazers_count":65,"open_issues_count":18,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T12:42:09.489Z","etag":null,"topics":["ember","ember-addon","hacktoberfest"],"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/mansona.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-11-06T02:44:50.000Z","updated_at":"2024-05-30T02:19:52.000Z","dependencies_parsed_at":"2024-06-18T13:34:22.093Z","dependency_job_id":"58e8dbc8-3d7f-45c3-8f7a-c9cec7177b74","html_url":"https://github.com/mansona/ember-get-config","commit_stats":{"total_commits":93,"total_committers":14,"mean_commits":6.642857142857143,"dds":0.5053763440860215,"last_synced_commit":"552ce14df18a68481f4a8bb8528fa7b95e75b5e9"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansona%2Fember-get-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansona%2Fember-get-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansona%2Fember-get-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mansona%2Fember-get-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mansona","download_url":"https://codeload.github.com/mansona/ember-get-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"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":["ember","ember-addon","hacktoberfest"],"created_at":"2024-10-02T11:44:07.213Z","updated_at":"2025-10-08T07:09:17.275Z","avatar_url":"https://github.com/mansona.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/ember-get-config.svg)](https://badge.fury.io/js/ember-get-config)\n[![GitHub Actions Build Status](https://img.shields.io/github/workflow/status/mansona/ember-get-config/CI/master)](https://github.com/mansona/ember-get-config/actions/workflows/ci.yml?query=branch%3Amaster)\n\n# ember-get-config\n\nGaining access to an app's config file from an addon can be challenging. If possible, you should always get it through the container like so:\n\n```js\nexport default Ember.Component.extend({\n  someFunction() {\n    const config = Ember.getOwner(this).resolveRegistration('config:environment');\n    . . . .\n  }\n});\n```\n\nIf you do not have access to the container though, you can always use `ember-get-config`.\n\n## Installation\n\n`ember install ember-get-config`\n\n## Usage\n\nSimply:\n\n```js\nimport config from 'ember-get-config';\n```\n\nWhich allows you to do handy things like:\n\n```js\nconst { environment, modulePrefix } = config;\n```\n\nBoom!\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansona%2Fember-get-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmansona%2Fember-get-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmansona%2Fember-get-config/lists"}