2.0.0 • Published 2 months ago

ember-get-config v2.0.0

Weekly downloads
161,279
License
MIT
Repository
github
Last release
2 months ago

npm version GitHub Actions Build Status

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:

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:

import config from 'ember-get-config';

Which allows you to do handy things like:

const { environment, modulePrefix } = config;

Boom!

Contributing

See the Contributing guide for details.

hovhannes-cl-componentsember-parlay-slparlay-slparlay-sl-componentparlay-sl-components@phille/ember-base@theenadayalan/ember-cli-notificationsember-ux-controlsember-class-names-builder@kbsoftware/kb-base-ember-addonsaffinity-enginefield-guidehovo-parlay-sl-componentshovo-slhovo-sl-componentsguidemakeretison-ember-intercomprysmex-docfy-emberprember-metaparlor-sl-componentsnypr-audio-servicesnypr-authnypr-metricsnypr-publisher-libshamgar-auto-upgradenavi-corenavi-dashboardsnavi-datanavi-directorysl-ember-componentsswf-blog@anamo/ember-coldstart@coyote-labs/ember-accessibility@centerforopenscience/ember-osf@docfy/ember@libpixel/ember-libpixel@kwatson/ember-cli-notifications@lblod/ember-rdfa-editorember-hookember-horizonember-host-managerember-google-publisher-tagsember-hammertimeember-ghostember-goodsember-frost-bunsenember-frost-modalember-cli-addon-docsember-changeset-validationsember-basic-dropdownember-body-classember-model-selectember-osfempress-blog-ghost-helpersempress-blogember-nrg-uiember-paperember-paper-exember-paper-liteember-pausable-testember-online-statusember-stereoember-solidember-sortableember-sequencerember-smoochember-scroll-to-mk2ember-seamless-immutable-shimember-search-flowember-img-lazyember-imgurember-lenddoember-letter-by-letterember-light-tableember-light-table-zemosoember-intl-phraseappember-jwplayerember-keenember-konvaember-leaflet-clember-data-lexascmsember-data-mirageember-concurrency-scrollember-deep-buffered-proxyember-cli-waxpoeticember-cli-yadda-opinionatedember-wc-containerember-web-component-containerember-webcamember-cli-imgixember-cli-lazy-loadember-cli-hot-loaderember-cli-mirageember-cli-notificationsember-cli-paperember-cli-pickadateember-cli-moment-shimember-cli-resolve-assetember-cli-segmentioember-cli-tus
1.0.4

3 months ago

1.0.3

3 months ago

2.0.0

2 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

6 months ago

0.5.0

8 months ago

0.4.0

8 months ago

0.3.0

2 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago