Big update!Introducing GitHub Bot Commands. Learn more
Socket
BlogLoveLog in
Book a demo

cli-cursor

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

cli-cursor

Toggle the CLI cursor

    4.0.0latest

Version published
Maintainers
1
Weekly downloads
30,766,053
increased by1.54%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 12.20 f8caceb
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/cli-cursor/compare/v3.1.0...v4.0.0

Readme

Source

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


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.

Keywords

FAQs

What is cli-cursor?

Toggle the CLI cursor

Is cli-cursor popular?

The npm package cli-cursor receives a total of 29,585,211 weekly downloads. As such, cli-cursor popularity was classified as popular.

Is cli-cursor well maintained?

We found that cli-cursor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 23 Aug 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc