# ember-build-time-data

> An Ember addon to help you insert JSON data into your application at build time.

Latest version **0.1.2** (published 2020-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-build-time-data
pnpm add ember-build-time-data
yarn add ember-build-time-data
bun add ember-build-time-data
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-08-20 |
| First published | 2020-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 10.* \|\| >= 12 |
| Dependencies | 5 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | robert-96 |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-build-time-data
- Repository: https://github.com/Robert-96/ember-build-time-data
- Homepage: https://Robert-96.github.io/ember-build-time-data
- Issues: https://github.com/Robert-96/ember-build-time-data/issues
- npm.io page: https://npm.io/package/ember-build-time-data

## Dependencies (5)

- [broccoli-funnel](https://npm.io/package/broccoli-funnel.md) ^3.0.3
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.18.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^4.2.3
- [broccoli-json-module](https://npm.io/package/broccoli-json-module.md) ^1.0.0
- [broccoli-merge-trees](https://npm.io/package/broccoli-merge-trees.md) ^4.2.0

## Recent versions

- 0.1.2 (latest) — 2020-08-20
- 0.1.1 — 2020-08-03

## README

# ember-build-time-data

[![Build Status](https://travis-ci.org/Robert-96/ember-build-time-data.svg?branch=master)](https://travis-ci.org/Robert-96/ember-build-time-data)

An Ember addon to help you insert JSON data into your application at build time.

## Compatibility

* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Node.js v10 or above

## Installation

```
ember install ember-build-time-data
```

## Usage

### Add a JSON file

Create a `data.json` file inside the `/support` folder:

```json
{
    "data": {
        "id": 1,
        "name": "EMERALD",
        "color": "#2ecc71"
    }
}
```

### Import the JSON file

In order you get the data in your components or route you only need to import it:

```js
import data from '../support/data';
```

## 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/ember-build-time-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
