@fullstack-one/boot-loader

fullstack.one helper package

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@fullstack-one/boot-loader
39240.7.165 months ago5 years agoMinified + gzip package size for @fullstack-one/boot-loader in KB

Readme

@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.