Emmanuil 73a9f0ffcf 20.07.2020 | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.d.ts | %!s(int64=4) %!d(string=hai) anos | |
index.js | %!s(int64=4) %!d(string=hai) anos | |
license | %!s(int64=4) %!d(string=hai) anos | |
package.json | %!s(int64=4) %!d(string=hai) anos | |
readme.md | %!s(int64=4) %!d(string=hai) anos |
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