Inversion of control container for TypeScript and JavaScript apps
open sourceMITfree
InversifyJS is an MIT-licensed inversion of control (IoC) container for TypeScript and JavaScript apps: it uses a class's constructor to identify and inject its dependencies, aiming for SOLID design with little runtime overhead. It's published on npm as inversify, with container docs at inversify.io and a separate HTTP framework documented there too. Development moved from the original inversify/InversifyJS repository to the inversify/monorepo repository.
Problems it solves
- wire up dependencies in a TypeScript backend without passing them by hand everywhere
- swap real services for test doubles in my Node.js app through a container
- use dependency injection with decorators in a TypeScript project
Features
- constructor-based dependency injection for classes
- container docs and a separate HTTP framework at inversify.io
