@fullstack-one/core
v0.5.25
Published
fullstack.one core package
Downloads
20
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.