0.5.0 • Published 2 years ago

minbo v0.5.0

Weekly downloads
1
License
MIT
Repository
-
Last release
2 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

2 years ago

0.4.2

4 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.0

8 years ago

0.1.1

8 years ago