{"library":"typescript-ioc","type":"library","category":null,"description":"typescript-ioc is a lightweight, annotation-based dependency injection (DI) container specifically designed for TypeScript applications. It allows developers to manage dependencies using decorators like `@Inject`, simplifying object graph creation and promoting modular design. The library is currently stable at version 3.2.2, with the 3.x series being actively maintained through frequent patch and minor releases. Key differentiators include its small footprint, ease of use with TypeScript decorators, and broad environmental support including Node.js, browsers, and React Native. It provides features such as different scopes (Singleton, Request, Local), factory creation, and configuration capabilities, making it suitable for both simple and complex application architectures where inversion of control is desired. A notable change in the 3.x series was the discontinuation of support for ES5 runtimes, requiring modern JavaScript environments (ES6 or newer).","language":"javascript","status":"active","version":"3.2.2","tags":["javascript","ioc","di","cdi","typescript","node","dependency injection","dependency inversion"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-ioc","imports":["import { Inject } from 'typescript-ioc';","import { Container } from 'typescript-ioc';","import { Scope } from 'typescript-ioc';"]},{"cmd":"yarn add typescript-ioc","imports":[]},{"cmd":"pnpm add typescript-ioc","imports":[]}],"homepage":null,"github":"https://github.com/thiagobustamante/typescript-ioc","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-ioc","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-ioc/compatibility"}}