{"library":"async_hooks","type":"library","category":null,"description":"This npm package, `async_hooks` (v1.0.0), is a placeholder that explicitly states it is \"squatting for node core module.\" It provides no functional code or exports. The actual `async_hooks` is a critical Node.js core module, built directly into the Node.js runtime, designed for tracking the lifecycle of asynchronous resources (like promises, timers, and I/O operations) within an application. It enables advanced use cases such as profiling, debugging, and propagating context across asynchronous operations. Historically, parts of this API were marked experimental; however, Node.js now recommends `AsyncLocalStorage` for most asynchronous context tracking, as it offers a more stable, performant, and memory-safe implementation compared to the lower-level `createHook` API. Developers should always directly import `node:async_hooks` as a built-in module and **never** install a package named `async_hooks` from npm, as it is a non-functional squat.","language":"javascript","status":"abandoned","version":"1.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install async_hooks","imports":["import * as async_hooks from 'node:async_hooks';","import { AsyncLocalStorage } from 'node:async_hooks';","import { createHook } from 'node:async_hooks';"]},{"cmd":"yarn add async_hooks","imports":[]},{"cmd":"pnpm add async_hooks","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/async_hooks","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/async_hooks/compatibility"}}