This package has been deprecated

Author message:

use nextjs and alp-nextjs instead

alp-browser-config
TypeScript icon, indicating that this package has built-in type declarations

7.0.5 • Public • Published

alp-browser-config

config in alp framework

In your app

import packageConfig from './package.json';
import { Config } from 'alp-browser-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 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 });

Readme

Keywords

Package Sidebar

Install

npm i alp-browser-config

Weekly Downloads

0

Version

7.0.5

License

ISC

Unpacked Size

42.1 kB

Total Files

20

Last publish

Collaborators

  • churpeau