@fougere/container

Fougere's DI container: resolution by type, wired from the AST scan. Zero dependencies.

Entries: @fougere/container

What you import

name
ContainerError
createContainer

Types

TypeScript types only — they do not run. Import them with import type to type your own code: a variable, a parameter, an option object.

name
ContainerDI container interface — the only thing application code sees.
Constructor
RegisterOptions
Lifetime'singleton' builds once per scope, 'transient', the default, at each resolve.
Built with Fougere and Nuxt, hosted on GitHub Pages.