{"library":"node-cls","type":"library","category":null,"description":"Continuation Local Storage (CLS) for Node.js based on async_hooks, providing context propagation across async calls. Version 1.0.7 is stable and works with Node >=8.0.0. It is an alternative to the deprecated domain module and offers nested contexts, Symbol keys to avoid collisions, and an await-compatible start() method (Node 12+). Unlike similar libraries like cls-hooked or async-hooks-context, node-cls focuses on a simple API with create, run, get, start, and exit methods. Release cadence is low; no recent updates.","language":"javascript","status":"active","version":"1.0.7","tags":["javascript","continuation-local-storage","continuation local storage","cls","async_hooks","context","domain","bluebird"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install node-cls","imports":["import cls from 'node-cls'","const context = cls.create('key')","const ctx = cls.get('key')"]},{"cmd":"yarn add node-cls","imports":[]},{"cmd":"pnpm add node-cls","imports":[]}],"homepage":"https://github.com/alfateam/node-cls/blob/master/README.md","github":"ssh://git@github.com/alfateam/node-cls","docs":null,"changelog":null,"pypi":null,"npm":"node-cls","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}