{"library":"asynchronous-local-storage","type":"library","category":null,"description":"Provides a unified API for asynchronous local storage in Node.js, using the native AsyncLocalStorage (available since Node.js 12.17.0 / 14.0.0) with automatic fallback to cls-hooked for older Node.js versions (>=6). Version 1.0.2 is the latest stable release. It offers a simple get/set/runWith interface and is designed to be a drop-in replacement for CLS-based libraries, making it easier to manage request-scoped data without worrying about Node.js version compatibility. Ships TypeScript definitions.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","async-local-storage","als","cls","continuous-local-storage","asynchronouslocalstorage","threadlocal","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install asynchronous-local-storage","imports":["import { als } from 'asynchronous-local-storage'","import { runWith } from 'asynchronous-local-storage'","import als from 'asynchronous-local-storage'"]},{"cmd":"yarn add asynchronous-local-storage","imports":[]},{"cmd":"pnpm add asynchronous-local-storage","imports":[]}],"homepage":"https://github.com/kibertoad/asynchronous-local-storage","github":"git://github.com/kibertoad/asynchronous-local-storage","docs":null,"changelog":null,"pypi":null,"npm":"asynchronous-local-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}