|
|
há 9 meses atrás | |
|---|---|---|
| .. | ||
| index.d.ts | há 9 meses atrás | |
| index.js | há 9 meses atrás | |
| license | há 9 meses atrás | |
| package.json | há 9 meses atrás | |
| readme.md | há 9 meses atrás | |
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
$ npm install cli-cursor
const cliCursor = require('cli-cursor');
cliCursor.hide();
const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome);
Useful for showing or hiding the cursor based on a boolean.
Type: stream.Writable
Default: process.stderr