peach a19a732be8 commit message | 2 سال پیش | |
---|---|---|
.. | ||
index.d.ts | 2 سال پیش | |
index.js | 2 سال پیش | |
license | 2 سال پیش | |
package.json | 2 سال پیش | |
readme.md | 2 سال پیش |
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