{"library":"cli-cursor","type":"library","category":null,"description":"cli-cursor is a lightweight utility that provides a simple API for showing, hiding, and toggling the command-line interface cursor. Its primary function is to manage cursor visibility in terminal applications, with a notable feature of gracefully restoring the cursor's state upon process exit, preventing a permanently hidden cursor. The current stable version is 5.0.0, which requires Node.js 18 or higher. Releases are typically driven by updates to Node.js LTS versions and the transition to pure ESM, rather than a fixed cadence. Key differentiators include its robust cursor restoration mechanism (powered by `restore-cursor`) and a minimalist, focused API, making it a reliable choice for CLI tools needing precise cursor control.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","cli","cursor","ansi","toggle","display","show","hide","term","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-cursor","imports":["import cliCursor from 'cli-cursor';","import cliCursor from 'cli-cursor';\ncliCursor.hide();","import cliCursor from 'cli-cursor';\ncliCursor.toggle(true);"]},{"cmd":"yarn add cli-cursor","imports":[]},{"cmd":"pnpm add cli-cursor","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/cli-cursor","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-cursor","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/cli-cursor/compatibility"}}