alp-config
v3.5.2
Published
config in alp framework
Downloads
9
Readme
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 });