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
    868
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    868
  • 4.0.0
    6,817,004
  • 3.1.0
    32,901,319
  • 3.0.0
    1,344
  • 2.0.0
    12,328,238
  • 1.0.1
    2,418,012
  • 1.0.0
    29

Package Sidebar

Install

npm i restore-cursor

Weekly Downloads

39,240,533

Version

5.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus