|
|
vor 5 Monaten | |
|---|---|---|
| .. | ||
| index.d.ts | vor 5 Monaten | |
| index.js | vor 5 Monaten | |
| license | vor 5 Monaten | |
| package.json | vor 5 Monaten | |
| readme.md | vor 5 Monaten | |
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
npm install cli-cursor
import cliCursor from '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