3.5.2 • Published 8 years ago

alp-config v3.5.2

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

In your app

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

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

With Koa

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.

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

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

With Alp

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

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

8 years ago

3.5.1

8 years ago

3.5.0

8 years ago

3.4.0

9 years ago

3.3.1

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.6.0

9 years ago

2.5.0

10 years ago

2.4.0

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.0

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago