github-pages-deploy-action/node_modules/restore-cursor/readme.md

27 lines
497 B
Markdown
Raw Normal View History

2020-03-31 20:40:00 +08:00
# restore-cursor [![Build Status](https://travis-ci.org/sindresorhus/restore-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/restore-cursor)
2020-03-07 11:45:40 +08:00
> Gracefully restore the CLI cursor on exit
Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.
## Install
```
2020-03-31 20:40:00 +08:00
$ npm install restore-cursor
2020-03-07 11:45:40 +08:00
```
## Usage
```js
const restoreCursor = require('restore-cursor');
2020-03-31 20:40:00 +08:00
2020-03-07 11:45:40 +08:00
restoreCursor();
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)