|
|
3 年之前 | |
|---|---|---|
| .. | ||
| index.js | 3 年之前 | |
| license | 3 年之前 | |
| package.json | 3 年之前 | |
| readme.md | 3 年之前 | |
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
$ npm install --save cli-cursor
const cliCursor = require('cli-cursor');
cliCursor.hide();
const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome);
force is useful to show or hide the cursor based on a boolean.
Type: Stream
Default: process.stderr
MIT © Sindre Sorhus