0.5.0 • Published 3 years ago

minbo v0.5.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

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
0.5.0

3 years ago

0.4.2

5 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.0

9 years ago

0.1.1

9 years ago