Asynchronous Local Storage

JSON →
library 1.0.2 ·javascript
verified Jun 7, 2026

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.