@fullstack-one/boot-loader
v0.7.16
Published
fullstack.one helper package
Downloads
100
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.