{"library":"cls-middleware","type":"library","category":null,"description":"cls-middleware provides a simple middleware for Connect and Restify (and by extension, Express) to integrate continuation-local storage (CLS) contexts into request handling. It binds each incoming request's execution flow to a dedicated CLS namespace, allowing developers to store and retrieve request-scoped data without explicit parameter passing across function calls. This package relies on the older `continuation-local-storage` library, which itself uses deprecated Node.js internal APIs or earlier experimental `async_hooks` implementations. The current stable version is 1.1.0, published in 2014, indicating it is no longer actively maintained. For modern Node.js environments (v14.5.0+), the built-in `AsyncLocalStorage` is the recommended and more performant solution for managing asynchronous context.","language":"javascript","status":"abandoned","version":"1.1.0","tags":["javascript","continuation-local-storage","express"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cls-middleware","imports":["const clsify = require('cls-middleware');","const cls = require('continuation-local-storage');\nconst ns = cls.createNamespace('my-namespace');"]},{"cmd":"yarn add cls-middleware","imports":[]},{"cmd":"pnpm add cls-middleware","imports":[]}],"homepage":null,"github":"https://github.com/othiym23/cls-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cls-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cls-middleware/compatibility"}}