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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.0
    753
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    753
  • 4.0.0
    5,617,296
  • 3.1.0
    29,993,538
  • 3.0.0
    1,390
  • 2.0.0
    13,085,914
  • 1.0.1
    2,963,893
  • 1.0.0
    53

Package Sidebar

Install

npm i restore-cursor

Weekly Downloads

34,434,323

Version

5.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus