# @lblod/ember-environment-banner

> The default blueprint for ember-cli addons.

Latest version **0.6.0** (published 2025-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lblod/ember-environment-banner
pnpm add @lblod/ember-environment-banner
yarn add @lblod/ember-environment-banner
bun add @lblod/ember-environment-banner
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2025-01-09 |
| First published | 2022-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14.* \|\| 16.* \|\| >= 18 |
| Dependencies | 3 |
| Unpacked size | 19.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | erikap, nielsv, madnificent, cecemel, clairelovisa, dietr, oscar.redpencil, aatauil |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@lblod/ember-environment-banner
- Repository: https://github.com/lblod/ember-environment-banner
- Homepage: https://github.com/lblod/ember-environment-banner#readme
- Issues: https://github.com/lblod/ember-environment-banner/issues
- npm.io page: https://npm.io/package/@lblod/ember-environment-banner

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.26.11
- [@embroider/macros](https://npm.io/package/@embroider/macros.md) ^1.13.1
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^6.2.0

## Recent versions

- 0.6.0 (latest) — 2025-01-09
- 0.5.0 — 2024-04-18
- 0.4.0 — 2023-06-21
- 0.3.0 — 2023-06-20
- 0.2.0 — 2023-02-27
- 0.1.3 — 2023-01-30
- 0.1.2 — 2022-09-13
- 0.1.1 — 2022-09-02

## README

# @lblod/ember-environment-banner

This ember addon is an implementation of an environment banner which is to be used in different LBLOD applications.
It provides an Ember component which adds a banner to your page.


## Compatibility

* Ember.js v3.28 or above
* Ember CLI v3.28 or above
* Node.js v16 or above


## Installation

```
ember install ember-environment-banner
```


## Usage

You can add an instance of the environment banner to your page this way:
```hbs
<EnvironmentBanner
  @applicationName='Ember Environment Banner'
  @environmentName={{this.environmentName}}
  @skin={{@skin}}
  @message={{@message}}
/>
```
The component expects two, and accepts three arguments:
* `@applicationName` - the application name which should be displayed in the banner.
* `@environmentName` - the environment name, which should be displayed in the banner.
* `@message` - a string that can be written in the _application.hbs_ file, or can be configured in the application controller (optional).
* `@skin` - a skin that can be added as a string (skin name) in the _application.hbs_ file, or can be configured in the application controller (optional).

The banner automatically extracts the version of the host app and displays it.
Additionally, the banner can also display installed packages and their versions through a modal.
You can configure which packages are shown by providing a list of glob patterns to the addon. The addon can be configure in the `config/environment.js` file of your host app.

Example of such a configuration:
```js
'@lblod/ember-environment-banner': {
      paths: ['ember*'],
},
```
The above example config will allow the addon to pick up packages that start with `ember`.

By default, the environment-banner displays the  `@lblod/ember-rdfa-editor` packages.

## Contributing

See the [Contributing](CONTRIBUTING.md) guide for details.


## License

This project is licensed under the [MIT License](LICENSE.md).

---
_Source: https://npm.io/package/@lblod/ember-environment-banner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
