{"library":"nestjs-cls","type":"library","category":null,"description":"nestjs-cls is a continuation-local storage module for NestJS that leverages Node.js AsyncLocalStorage to provide request-scoped context across the entire application without relying on request-scoped providers. Version 6.2.1 supports NestJS 10-11, Node.js >=18, and ships TypeScript types. Unlike manual injection of request objects, nestjs-cls automatically propagates context across all providers, including those that are singleton-scoped, making it ideal for logging, tenant resolution, and database transaction management in asynchronous flows.","language":"javascript","status":"active","version":"6.2.1","tags":["javascript","nest","nestjs","cls","continuation-local-storage","als","AsyncLocalStorage","async_hooks","request context","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install nestjs-cls","imports":["import { ClsModule } from 'nestjs-cls'","import { ClsService } from 'nestjs-cls'","import { ClsGuard } from 'nestjs-cls'","import { UseCls } from 'nestjs-cls'"]},{"cmd":"yarn add nestjs-cls","imports":[]},{"cmd":"pnpm add nestjs-cls","imports":[]}],"homepage":"https://papooch.github.io/nestjs-cls/","github":"https://github.com/Papooch/nestjs-cls","docs":null,"changelog":null,"pypi":null,"npm":"nestjs-cls","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}