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

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

/restore-cursor/

    Package Sidebar

    Install

    npm i restore-cursor

    Weekly Downloads

    47,538,151

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    3.13 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus