google_forms/node_modules/cli-cursor
RameshT f9bc85d5f8 Your commit message 2024-08-09 17:34:48 +05:30
..
index.d.ts Your commit message 2024-08-09 17:34:48 +05:30
index.js Your commit message 2024-08-09 17:34:48 +05:30
license Your commit message 2024-08-09 17:34:48 +05:30
package.json Your commit message 2024-08-09 17:34:48 +05:30
readme.md Your commit message 2024-08-09 17:34:48 +05:30

readme.md

cli-cursor

Toggle the CLI cursor

The cursor is gracefully restored if the process exits.

Install

npm install cli-cursor

Usage

import cliCursor from 'cli-cursor';

cliCursor.hide();

const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome);

API

.show(stream?)

.hide(stream?)

.toggle(force?, stream?)

force

Useful for showing or hiding the cursor based on a boolean.

stream

Type: stream.Writable
Default: process.stderr