|
hai 1 semana | |
---|---|---|
.. | ||
index.d.ts | hai 1 semana | |
index.js | hai 1 semana | |
license | hai 1 semana | |
package.json | hai 1 semana | |
readme.md | hai 1 semana |
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