{"repo":"jeffijoe/awilix","free":true,"listed":false,"github":"https://github.com/jeffijoe/awilix","clone":"git clone https://github.com/jeffijoe/awilix.git","description":"Extremely powerful Inversion of Control (IoC) container for Node.JS","language":"TypeScript","stars":4220,"topics":["dependency-injection","awilix","ioc","lifetime-management","nodejs","javascript"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Awilix Extremely powerful, performant, & battle-tested Dependency Injection (DI) container for JavaScript/Node, written in TypeScript. Awilix enables you to write composable, testable software using dependency injection without special annotations , which in turn decouples your core application code from the intricacies of the DI mechanism. 💡 Check out this intro to Dependency Injection with Awilix Table of Contents - Awilix - Table of Contents - Installation - Usage - Lifetime management - Scoped lifetime - Strict mode - Injection modes - Auto-loading modules - Per-module local injections - Inlining resolver options - Disposing - API - The awilix object - Resolver options - createContainer() - InferCradleFromResolvers - InferCradleFromContainer - asFunction() - asClass() - asValue() - aliasTo() - listModules() - AwilixResolutionError - AwilixRegistrationError - The AwilixContainer object - container.cradle - container.registrations - container.cache - container.options - container.resolve() - container.register() - container.hasRegistration() - container.loadModules() - container.createScope() - container.build() - container.dispose() - Universal Module (Browser Support) - Ecosystem - Contributing - What's in a name? - Author - Migrating from older versions Installation Install with npm Or yarn You can also use the UMD build from unpkg Usage Awilix has a pretty simple API (but with many possible ways to invoke it). At minimum, you need to do 3 things: - Create a container -","default_branch":null,"files":null,"tree":[],"storefront":"/r/jeffijoe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jeffijoe/awilix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}