Files
react-native-devtools-frontend/node_modules/cli-cursor
Benedikt Meurer b308e62ad4 [npm] Use ora for build progress.
Drive-by-fix: Also properly log error messages from the build.

Bug: 411328609
Change-Id: I928f2015028b4645ff9e3e6111a4193d8f7eba1b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6468993
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2025-04-17 04:57:27 -07:00
..
2025-04-17 04:57:27 -07:00
2025-04-17 04:57:27 -07:00
2025-04-17 04:57:27 -07:00
2025-04-17 04:57:27 -07:00
2025-04-17 04:57:27 -07:00

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