|
1 tuần trước cách đây | |
---|---|---|
.. | ||
index.d.ts | 1 tuần trước cách đây | |
index.js | 1 tuần trước cách đây | |
license | 1 tuần trước cách đây | |
package.json | 1 tuần trước cách đây | |
readme.md | 1 tuần trước cách đây |
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