minbo

0.5.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i minbo

    Weekly Downloads

    1

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    19.2 kB

    Total Files

    17

    Last publish

    Collaborators

    • baranga