1 | # restore-cursor
|
2 |
|
3 | > Gracefully restore the CLI cursor on exit
|
4 |
|
5 | Prevent the cursor you have hidden interactively from remaining hidden if the process crashes.
|
6 |
|
7 | It does nothing if run in a non-TTY context.
|
8 |
|
9 | ## Install
|
10 |
|
11 | ```sh
|
12 | npm install restore-cursor
|
13 | ```
|
14 |
|
15 | ## Usage
|
16 |
|
17 | ```js
|
18 | import restoreCursor from 'restore-cursor';
|
19 |
|
20 | restoreCursor();
|
21 | ```
|