Passing metadata from TypeScript code to JavaScript code using decorators for Dependency InjectionJul 4, 2024·3 min read
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 read
NestJS vs. Ditsmod: auto-validationNestJS performs input validation using decorators, pipes, and the class-validator utility. For example, if validation is required for path-parameters or query-parameters, the @Param() or @Query() decorators are used for this, respectively, along with...Dec 12, 2022·5 min read
NestJS vs. Ditsmod: DI features for interceptors, guards, pipes and filtersInterceptors, guards, pipes, and exception filters are sometimes referred to as "enhancers" in the NestJS documentation. Although they are all declared with the @Injectable() decorator and can use Dependency Injection, they are not providers. Therefo...Dec 12, 2022·2 min read