The "@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...Jul 22, 2024 · 1 min readktretiak.hashnode.dev
Passing 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...Jul 4, 2024 · 3 min readktretiak.hashnode.dev
Ditsmod - 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...Aug 4, 2023 · 4 min readktretiak.hashnode.dev
NestJS 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...Aug 4, 2023 · 5 min readktretiak.hashnode.dev
NestJS 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...Dec 12, 2022 · 3 min readktretiak.hashnode.dev