Muqriz 48f16bfc3e initail first | 4 月之前 | |
---|---|---|
.. | ||
index.d.ts | 4 月之前 | |
index.js | 4 月之前 | |
license | 4 月之前 | |
package.json | 4 月之前 | |
readme.md | 4 月之前 |
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