КТКостя Третякinktretiak.hashnode.dev·Jul 22, 2024 · 1 min readThe "@ts-stack/body-parser" package passes the parsing results via a PromiseThe package @ts-stack/body-parser is a fork of body-parser - the native ExpressJS package. It is written in TypeScript in ESM format, without support for older versions of Node.js < v20.6.0. To install it, run the following command: npm install @ts-s...00
КТКостя Третякinktretiak.hashnode.dev·Jul 4, 2024 · 3 min readPassing metadata from TypeScript code to JavaScript code using decorators for Dependency InjectionWhen TypeScript decorators are used for Dependency Injection, they are needed for two things. First, they signal to the TypeScript compiler that it needs to read TypeScript types, transform them into JavaScript code, and save them. Second, if additio...00
КТКостя Третякinktretiak.hashnode.dev·Aug 4, 2023 · 4 min readDitsmod - new NodeJS webframework writen in TypeScriptIf you look through the search results on github for the keyword nodejs-framework (with only TypeScript projects selected), you can see that there are currently about 5 different frameworks designed to create applications that process HTTP requests o...00
КТКостя Третякinktretiak.hashnode.dev·Aug 4, 2023 · 5 min readNestJS vs. Ditsmod: injection scopesGood application modularity is closely related to the injector tree hierarchy that Dependency Injection (DI) creates. This article uses NestJS v10.0 and Ditsmod v2.38 for comparison. I am the author of Ditsmod. DI injectors are sometimes referred to...00
КТКостя Третякinktretiak.hashnode.dev·Dec 12, 2022 · 3 min readNestJS vs. Ditsmod: features of the routerThe description of NestJS specifically states that this framework was designed for "scalable server-side applications". Surprisingly, only in the eighth version it began to support prefixes at the module level, and this feature has a number of signif...00