mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
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>
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