InversifyJS
awilix
InversifyJS | awilix | |
---|---|---|
29 | 5 | |
11,448 | 3,645 | |
1.0% | - | |
8.6 | 8.1 | |
7 days ago | about 2 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
InversifyJS
-
Mastering the Dependency Inversion Principle: Best Practices for Clean Code with DI
One of the most popular libraries in JavaScript for implementing the Inversion of Control (IoC) pattern is InversifyJS. It provides a robust and flexible framework for managing dependencies in a clean, modular way. However, InversifyJS has some drawbacks. One major limitation is the amount of boilerplate code required to set up and manage dependencies. Additionally, it often requires structuring your application in a specific way, which may not suit every project.
-
How to Apply SOLID with Testing JS/TS Class Methods
Take a class for which we are tasked to write a unit test. This class may have a dozen methods and a dozen more attributes. In my environment we were already using inversify to dependency inject into this class, and using container snapshot and restore as setup and teardown operators, in our jest test file. But it began getting out of control even after refactoring into test cases and test runners.
-
VulcanSQL: open-source data API framework. Empowering you to construct APIs exclusively with SQL.
Inversify (https://inversify.io/) for IoC.
-
SOLID explicado com TypeScript
Alguns frameworks trabalham desta forma por padrão, como é o caso do Angular, quando este não é o padrão do framework que utilizamos podemos usar alguma biblioteca, como a Inversify ou tsyringe da Microsoft.
-
Using modern decorators in TypeScript
Using decorators required setting an --experimentalDecorators experimental compiler flag. Several popular TypeScript libraries, such as type-graphql and inversify, rely on this implementation.
-
Typesafe, (almost) Zero Cost Dependency Injection in TypeScript
inversify
- InversifyJS has reached 100,000,000 downloads on npm
-
InversifyJS has reached 100,000,000 downloads on npm 🎉 🚀
It blows 🤯 my mind to think that my #opensource project InversifyJS has reached over 100 MILLION DOWNLOADS on npm. InversifyJS is a lightweight (<50KB) but powerful Inversion Of Control (IoC) container for #JavaScript applications powered by #TypeScript. It is used to implement Dependency Injection (DI) in thousands of applications, including high-profile products like Microsoft Sway and over forty thousand open source repositories on #GitHub and over two thousand open source packages on #npm.
-
Is dependency Injection popular in Nodejs?
we use https://inversify.io/ in production, it works great.
- SOLID com Typescript: O resumo completo com exercícios
awilix
-
create generic BaseService working with TypeORM
In next post I will show you how to using with other DI package like awilix , tsyringe, etc...
-
Repository Pattern with Typescript and Node.js
In real project we have some Dependency Injection library, in my case it is Awilix. Now we need realize integration of repository with out DI solution.
-
Can someone suggest a simple dependency injection library for TypeScript/JavaScript?
I used awilix in several project, seems good enough for us, no problem so far. https://github.com/jeffijoe/awilix
-
GraphQL + Clean Architectire boilerplate
IoC: (stand for Inversion of Control) is an implementation of the Dependency Injection, the letter D in the SOLID principal. Every time you create a new Service class, or a new repository class, or a new controller, you need to register them in this container. This boilerplate uses Awilix library to achieve the factor.
- Um Guia sobre Injeção e Inversão de Dependências em Node.js e TypeScript
What are some alternatives?
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
tsyringe - Lightweight dependency injection container for JavaScript/TypeScript
Ts.ED - :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
typedi - Simple yet powerful dependency injection tool for JavaScript and TypeScript.
entrance-decorator - A minimal solution of dependency injection for projects that scale.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
software-design-and-architecture-roadmap - 🧱 The software design and architecture roadmap for any developer
vue-property-decorator - Vue.js and Property Decorator
graphql_clean-architecture_boilerplate - GraphQL + Clean Architecture boilerplate
mixitup - A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more
loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.