|
|
pirms 1 gada | |
|---|---|---|
| .. | ||
| index.d.ts | pirms 1 gada | |
| index.js | pirms 1 gada | |
| license | pirms 1 gada | |
| package.json | pirms 1 gada | |
| readme.md | pirms 1 gada | |
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