@spirex/di-config
v1.0.0
Published
A middleware for @spirex/di that configures services right after they are created.
Maintainers
Readme
SpireX/DI Config
@spired/di-config
A middleware for @spirex/di that configures services right after they are created. Configure lets you apply post-construction initialization logic without modifying the service factory or class itself, making it easier to extend and reuse modules.
import { Config } from '@spirex/di-config';
const container = diBuilder()
.include(SQLiteModule)
.use(Config({
sqlite: (sqlite) => { sqlite.file = "db.sqlite" }
}));