Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
497 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | # restore-cursor [![Build Status](https://travis-ci.org/sindresorhus/restore-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/restore-cursor)
|
---|
| 2 |
|
---|
| 3 | > Gracefully restore the CLI cursor on exit
|
---|
| 4 |
|
---|
| 5 | Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | ## Install
|
---|
| 9 |
|
---|
| 10 | ```
|
---|
| 11 | $ npm install restore-cursor
|
---|
| 12 | ```
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | ## Usage
|
---|
| 16 |
|
---|
| 17 | ```js
|
---|
| 18 | const restoreCursor = require('restore-cursor');
|
---|
| 19 |
|
---|
| 20 | restoreCursor();
|
---|
| 21 | ```
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | ## License
|
---|
| 25 |
|
---|
| 26 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.