@fullstack-one/boot-loader

fullstack.one helper package

Usage no npm install needed!

<script type="module">
  import fullstackOneBootLoader from 'https://cdn.skypack.dev/@fullstack-one/boot-loader';
</script>

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.