restore-cursor

JSON →
library 5.1.0 ·javascript
verified May 27, 2026

Gracefully restore the CLI cursor on exit. The package automatically restores the cursor when a process exits, preventing hidden cursors from remaining hidden after crashes or interruptions. Latest version 5.1.0, maintained by Sindre Sorhus. Releases are stable and infrequent. Key differentiators: zero dependencies (v5+), proper TTY detection (no-op in non-TTY contexts), and simple imperative API. Pure ESM from v4, requires Node.js >=18 (v5).

total hits 13
actors 5 distinct systems
last hit 19h ago AhrefsBot
GPTBot
5
Script
1
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇹🇷 Turkey · 🇩🇪 Germany · 🇬🇧 United Kingdom