npm.io
9.1.1 • Published 2 years ago

alp-node-config

Licence
ISC
Version
9.1.1
Deps
5
Size
33 kB
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

alp-node-config

config in alp framework

In your app

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

const config = new Config(new URL('./config', import.meta.url));
export default config;
config.loadSync({ packageConfig });

With Koa

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

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

With Alp

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

const app = new Alp({ config });

Keywords