ditsmod
InversifyJS
ditsmod | InversifyJS | |
---|---|---|
10 | 28 | |
72 | 10,821 | |
- | 0.6% | |
9.8 | 6.2 | |
13 days ago | 9 days 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.
ditsmod
-
Benchmarks for "Hello, World!". Fastify slowed down a bit, Ditsmod and Restify sped up.
My last measurements were when Fastify was v3.25, Restify v8.6 and Ditsmod v2.0. From that moment on, although Fastify remained in the lead, other frameworks came quite close to its results.
-
From github nest/issues
For those users who see this as a problem and want the framework they use to support this feature, I can recommend Ditsmod. This framework solves this issue as follows.
-
NestJS vs. Ditsmod: injection scopes
Good application modularity is closely related to the injector tree hierarchy that Dependency Injection (DI) creates. DI injectors are sometimes referred to as DI containers, but since NestJS and Ditsmod have taken many concepts from Angular, this post will use the term "injectors" (since it does in Angular).
-
NestJS vs. Ditsmod: auto-validation
This post compares NestJS v9.2.0 and Ditsmod v2.27.0. A finished example of validation with the Ditsmod application can be viewed at github. I am the author of Ditsmod.
-
OPTIONS and CORS in Ditsmod application
A finished example from @ditsmod/cors can be viewed in the Ditsmod repository.
-
@ditsmod/i18n - a module for translating system messages
You can view the code with examples of the use of @ditsmod/i18n in the Ditsmod repository, although it is more convenient to view it locally, so it is better to clone it first:
- github
- Github
-
Announcing Ditsmod 2.0 beta (with RealWorld example)
Thanks to the system of extensions, Ditsmod applications are more expressive and with less code. For example, if you compare OpenAPI modules written in Ditsmod and NestJS, the Ditsmod module is 3.5 times smaller in the number of lines of code or the number of files.
-
Ditsmod - новий TypeScript веб-фреймворк для Node.js
Ditsmod є Node.js веб-фреймворком, його назва складається із DI + TS + Mod, щоб підкреслити важливі складові: він має Dependency Injection, написаний на Type*Script, та спроектований для хорошої **Mod*ularity (тобто модульності).
InversifyJS
-
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
- Has anyone successfully created a Dependency Injection using typescript decorators?
What are some alternatives?
typedi - Simple yet powerful dependency injection tool for JavaScript and TypeScript.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
serve-static - Serve static websites (SPA's) using Nest framework (node.js) 🥦
tsyringe - Lightweight dependency injection container for JavaScript/TypeScript
tinyhttp - 🦄 0-legacy, tiny & fast web framework as a replacement of Express
swagger - OpenAPI (Swagger) module for Nest framework (node.js) :earth_americas:
awilix - Extremely powerful Inversion of Control (IoC) container for Node.JS
Angular - Deliver web apps with confidence 🚀
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.
realworld - "The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
vue-property-decorator - Vue.js and Property Decorator