# alp-config

> config in alp framework

Latest version **3.5.2** (published 2018-03-31) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install alp-config
pnpm add alp-config
yarn add alp-config
bun add alp-config
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.5.2 |
| Published | 2018-03-31 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.3.0 |
| Dependencies | 5 |
| Unpacked size | 294.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christophe Hurpeau |
| Maintainers | churpeau |
| Keywords | alp |

## Links

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

## Dependencies (5)

- [flow-runtime](https://npm.io/package/flow-runtime.md) ^0.17.0
- [minimist-argv](https://npm.io/package/minimist-argv.md) ^1.0.0
- [stringify-json](https://npm.io/package/stringify-json.md) ^1.0.0
- [deep-freeze-es6](https://npm.io/package/deep-freeze-es6.md) ^1.0.1
- [parse-json-object-as-map](https://npm.io/package/parse-json-object-as-map.md) ^1.0.2

## Recent versions

- 3.5.2 (latest) — 2018-03-31
- 3.5.1 — 2018-03-23
- 3.5.0 — 2017-08-16
- 3.4.0 — 2017-04-03
- 3.3.1 — 2017-02-27
- 3.3.0 — 2017-02-27
- 3.2.0 — 2017-01-31
- 3.1.0 — 2016-11-01
- 3.0.0 — 2016-10-30
- 2.6.0 — 2016-07-28
- 2.5.0 — 2016-06-24
- 2.4.0 — 2016-06-23
- 2.3.1 — 2016-06-17
- 2.3.0 — 2016-06-11
- 2.2.0 — 2016-06-07
- … 8 more at https://npm.io/package/alp-config/versions

## README

<h3 align="center">
  alp-config
</h3>

<p align="center">
  config in alp framework
</p>

<p align="center">
  <a href="https://npmjs.org/package/alp-config"><img src="https://img.shields.io/npm/v/alp-config.svg?style=flat-square"></a>
  <a href="https://david-dm.org/alpjs/alp-config"><img src="https://david-dm.org/alpjs/alp-config.svg?style=flat-square"></a>
  <a href="https://dependencyci.com/github/alpjs/alp-config"><img src="https://dependencyci.com/github/alpjs/alp-config/badge?style=flat-square"></a>
</p>

## In your app

```js
import packageConfig from './package.json';
import { Config } from 'alp-config';

const config = new Config(__dirname + '/config');
export default config;
config.loadSync({ packageConfig });
```

## With Koa

```js
import Koa from 'koa';
import config from './config';

const app = new Koa();
config()(app, config);
```

## With Ibex

Config is cached in localstorage. `/config` is the path to the public config folder.

```js
import Ibex from 'ibex';
import config from './config';

const app = new Ibex();
app.appVersion = '1.0.0';
config('/config')(app);
```


## With Alp

```js
import Alp from 'alp'; 
import config from './config';

const app = new Alp({ config });
```

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