@vercube/di
v0.0.46
Published
Dependency Injection module for Vercube framework
Readme
@vercube/di
Dependency Injection container
IoC container that powers Vercube - bind services, inject dependencies, swap implementations for tests. Simple @Inject and you're done.
✨ Features
- Property injection -
@Inject(Service)on any class property - Flexible binding - singletons, transients, or existing instances
- Interface support - bind interfaces to implementations with symbols
- Testing friendly -
bindMockmakes unit tests a breeze
📦 Installation
pnpm add @vercube/di📖 Usage
Check out the full documentation
