# @lab009/app-config

> Configuration for universal web application

Latest version **2.0.0** (published 2017-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lab009/app-config
pnpm add @lab009/app-config
yarn add @lab009/app-config
bun add @lab009/app-config
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-01-24 |
| First published | 2017-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Oleg Orlov |
| Maintainers | lab009 |

## Links

- npm: https://www.npmjs.com/package/@lab009/app-config
- Repository: https://github.com/lab009/app-config
- Homepage: https://github.com/lab009/app-config#readme
- Issues: https://github.com/lab009/app-config/issues
- npm.io page: https://npm.io/package/@lab009/app-config

## Dependencies (1)

- [lodash.merge](https://npm.io/package/lodash.merge.md) 4.6.0

## Recent versions

- 2.0.0 (latest) — 2017-01-24

## README

# @lab009/app-config

> Configuration for universal web application

## Install

```
npm install --save @lab009/app-config
```

## Repository

https://github.com/lab009/app-config.git

## Usage

Loads configuration files from a `config` folder in your project root.

- `default` is always loaded if it exists
- If you specify `NODE_ENV=production` then both `production` and `default` are loaded, with `production` taking precedence.
- Any valid JS extension can be used for config - JS, json, etc.
  - To load another extension, register it before you require this module

```js
import config from '@lab009/app-config'
```

For working in browser add AppConfigPlugin in webpack config.

```js
import AppConfigPlugin from '@lab009/app-config/webpack'

var webpackConfig = {
  plugins: [
    new AppConfigPlugin(),
  ]
}
```

---
_Source: https://npm.io/package/@lab009/app-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
