alp-config

config in alp framework

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Mar 31, 2018Mar 11, 2016Minified + gzip package size for alp-config in KB

Readme

alp-config

config in alp framework

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 });

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.