restore-cursor is a tiny and efficient Node.js package that provides a simple function to hide the cursor and restore its visibility upon exit. This utility is particularly useful for CLI applications that require a clean terminal output during specific operations like loading animations or progress bars. It offers a non-intrusive way to manage cursor visibility, ensuring a seamless user experience. Ideal for terminal-based tools where you want to avoid cursor flickering or interference with your output.
The restore-cursor npm package has seen infrequent releases since its initial version in August 2014. Releases occurred in September 2015, January 2017, April 2019 (two versions), August 2021, September 2023 and July 2024. The release frequency is inconsistent, with long periods of inactivity followed by occasional updates.
The npm package restore-cursor experienced significant growth from February 2024 to July 2025, peaking at over 275 million downloads in June 2025. August 2025 shows a sharp decline, likely due to incomplete data for the month, as today is only August 30th.