cli-cursor

WebJar for cli-cursor

License

License

MIT
Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

cli-cursor
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

cli-cursor
WebJar for cli-cursor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/cli-cursor

Download cli-cursor

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/cli-cursor/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>cli-cursor</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/cli-cursor/
implementation 'org.webjars.npm:cli-cursor:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/cli-cursor/
implementation ("org.webjars.npm:cli-cursor:3.1.0")
'org.webjars.npm:cli-cursor:jar:3.1.0'
<dependency org="org.webjars.npm" name="cli-cursor" rev="3.1.0">
  <artifact name="cli-cursor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='cli-cursor', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "cli-cursor" % "3.1.0"
[org.webjars.npm/cli-cursor "3.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : restore-cursor jar [3.1.0,4)

Project Modules

There are no modules declared in this project.

cli-cursor Build Status

Toggle the CLI cursor

The cursor is gracefully restored if the process exits.

Install

$ npm install cli-cursor

Usage

const cliCursor = require('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


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
3.1.0
2.1.0
1.0.2