@fullstack-one/boot-loader
TypeScript icon, indicating that this package has built-in type declarations

0.7.16 • Public • Published

@fullstack.one/boot-loader

Boot management for fullstack-one packages and applications, but also general purpose boot manager based on typedi.

Installation

npm install --save @fullstack-one/boot-loader

Usage

import { BootLoader } from "@fullstack-one/boot-loader";

const bootLoader = Container.get(BootLoader);
bootLoader.addBootFunction("some name", () => {
  // do some stuff
});
bootLoader.addBootFunction("some async name", async () => {
  // do some async stuff
});

await bootLoader.boot();

Find more examples in the tests directory or read the code.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @fullstack-one/boot-loader

    Weekly Downloads

    3

    Version

    0.7.16

    License

    MIT

    Unpacked Size

    14.1 kB

    Total Files

    14

    Last publish

    Collaborators

    • eterehov
    • dustin-h
    • bettervest_david