|
|
5 сар өмнө | |
|---|---|---|
| .. | ||
| index.d.ts | 5 сар өмнө | |
| index.js | 5 сар өмнө | |
| license | 5 сар өмнө | |
| package.json | 5 сар өмнө | |
| readme.md | 5 сар өмнө | |
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