peach a19a732be8 commit message | 2 éve | |
---|---|---|
.. | ||
index.d.ts | 2 éve | |
index.js | 2 éve | |
license | 2 éve | |
package.json | 2 éve | |
readme.md | 2 éve |
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