# ember-get-config **Repository Path**: mirrors_salsify/ember-get-config ## Basic Information - **Project Name**: ember-get-config - **Description**: Get `config/environment` from anywhere, even addons!!! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![npm version](https://badge.fury.io/js/ember-get-config.svg)](https://badge.fury.io/js/ember-get-config) [![Build Status](https://travis-ci.org/null-null-null/ember-get-config.svg?branch=master)](https://travis-ci.org/null-null-null/ember-get-config) # ember-get-config Gaining 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: ```js export default Ember.Component.extend({ someFunction() { const config = Ember.getOwner(this).resolveRegistration('config:environment'); . . . . } }); ``` If you do not have access to the container though, you can always use `ember-get-config`. ## Installation `ember install ember-get-config` ## Usage Simply: ```js import config from 'ember-get-config'; ``` Which allows you to do handy things like: ```js const { environment, modulePrefix } = config; ``` Boom!