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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    750
  • 4.0.0
    5,872,664
  • 3.1.0
    23,549,357
  • 3.0.0
    14
  • 2.0.0
    7,233,051
  • 1.0.1
    1,357,144
  • 1.0.0
    14

Package Sidebar

Install

npm i restore-cursor

Weekly Downloads

38,012,994

Version

5.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus