minbo
v0.5.0
Published
minimal bootstrapper
Downloads
1
Maintainers
Readme
minbo - minimal bootstrapper for Node.js
A minimal lazy bootstrapper / dependency resolver for Node.js. Makes it possible to specify async dependencies without the need to define a resolution order upfront.
How to install
npm install minbo
Usage
const minbo = require('minbo');
const config = {
'const': 1,
'dynamic': (resolve) => resolve('const').then((val) => {
return val + 1;
}),
};
const load = minbo(config);
load('daynamic').then((val) => {
console.log(val);
});
// => 2