@jsango/container
v1.3.0
Published
Dependency injection and lifecycle management for jsango
Readme
@jsango/container
High-performance dependency injection container with transient, singleton, and scoped resolution lifecycles.
Part of the jsango backend framework for TypeScript.
Installation
pnpm add @jsango/containerUsage
import { Container } from '@jsango/container';
const container = new Container();
container.singleton('UserService', UserService);
const scope = container.createScope();
const svc = scope.resolve('UserService');Documentation
For full architecture documentation and guides, visit the jsango documentation.
License
MIT © jsango contributors
