A continuation-local storage (async context) module compatible with NestJS's dependency injection.
NestJS CLS is a continuation-local storage module that is compatible with NestJS' dependency injection based on AsyncLocalStorage. It allows for the storage and propagation of state throughout callbacks and promise chains, aiding in various functionalities during the lifespan of a web request or any asynchronous duration.
NestJS CLS is a valuable tool for maintaining and propagating state across various parts of a NestJS application, enabling features such as Request ID tracking, user tracking, and more. By utilizing continuation-local storage, developers can enhance the functionality and efficiency of their applications while avoiding potential clunkiness associated with other solutions.
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.