@cjser/cli-cursor__v4_0_0
v4.0.0-cjser.2
Published
Toggle the CLI cursor
Maintainers
Readme
cli-cursor
Toggle the CLI cursor
The cursor is gracefully restored if the process exits.
Install
$ npm install cli-cursorUsage
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
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/cli-cursor
