restore-cursor
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

restore-cursor

Gracefully restore the CLI cursor on exit

Prevent the cursor you have hidden interactively from remaining hidden if the process crashes.

It does nothing if run in a non-TTY context.

Install

npm install restore-cursor

Usage

import restoreCursor from 'restore-cursor';

restoreCursor();

Package Sidebar

Install

npm i restore-cursor

Weekly Downloads

31,036,667

Version

5.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus