# ember-export-application-global

> Sets `window.MyAppName` up as the application instance upon boot.

Latest version **2.0.1** (published 2019-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-export-application-global
pnpm add ember-export-application-global
yarn add ember-export-application-global
bun add ember-export-application-global
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-11-14 |
| First published | 2014-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4 |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Robert Jackson |
| Maintainers | rwjblue, stefanpenner |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-export-application-global
- Repository: https://github.com/ember-cli/ember-export-application-global
- Issues: https://github.com/ember-cli/ember-export-application-global/issues
- npm.io page: https://npm.io/package/ember-export-application-global

## Recent versions

- 2.0.1 (latest) — 2019-11-14
- 2.0.0 — 2017-03-24
- 1.1.1 — 2016-10-10
- 1.1.0 — 2016-10-10
- 1.0.5 — 2015-10-07
- 1.0.4 — 2015-08-23
- 1.0.3 — 2015-07-21
- 1.0.2 — 2015-02-11
- 1.0.1 — 2014-10-09
- 1.0.0 — 2014-10-09

## README

# ember-export-application-global

[![Build Status](https://travis-ci.org/ember-cli/ember-export-application-global.svg?branch=master)](https://travis-ci.org/ember-cli/ember-export-application-global)
[![devDependency Status](https://david-dm.org/ember-cli/ember-export-application-global/dev-status.svg)](https://david-dm.org/ember-cli/ember-export-application-global#info=devDependencies)
[![npm version](https://badge.fury.io/js/ember-export-application-global.svg)](http://badge.fury.io/js/ember-export-application-global)

Sets `window.MyAppName` up as the application instance upon boot.

By default this is only done when not running in production mode, but you can fully
control when it is executed by including `exportApplicationGlobal` in your `config/environment.js`
with `true` if you want the global exported, or `false` if you do not.

## Example Configuration

```javascript
// config/environment.js

module.exports = function(environment) {
  var ENV = {
    // other configuration
    exportApplicationGlobal: ['staging', 'production'].indexOf(environment) === -1
  }
};
```

## Installation

```sh
ember install ember-export-application-global
# or for ember-cli < 0.1.5
npm install --save-dev ember-export-application-global
```

## Available Configuration

* `exportApplicationGlobal` - Specify if you want the global to be exported.
  A `true` will export global as the application name, but a string will export
  is as that string.

## Contributing

This README outlines the details of collaborating on this Ember addon.

### Installation

* `git clone <repository-url>` this repository
* `cd ember-export-application-global`
* `npm install`
* `bower install`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).

## License

MIT

---
_Source: https://npm.io/package/ember-export-application-global · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
