Repository
Current version released
3 years ago
Versions
dein
dein defines dependency injection in a functional way and with minimal syntax. It is implemented in TypeScript for Deno.
Usage
Get started by studying the “Egg Maker” example defined in example.ts and its output:
deno run https://deno.land/x/dein/example.ts
Documentation is still work in progress. Fortunately, the source code is rather minimal:
- inject.ts for creating new systems.
- hooks.ts for overriding services.
- chain.ts for combining hooks.
- mod.ts exports all above.
Contributing
Run dev.ts to build the source files locally:
deno run -A dev.ts