Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 10, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
4
MIT
1
ISC
Package created
31 Aug 2014
Version published
11 Jun 2019
Maintainers
1
Total deps
5
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
cli-cursor@3.1.0
mimic-fn@2.1.0
onetime@5.1.2
restore-cursor@3.1.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
signal-exit@3.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of cli-cursor 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
restore-cursor3.1.01.56 kBMIT
prod

Visualizations

Frequently Asked Questions

What does cli-cursor do?

CLI-Cursor is a handy Node.js package that allows developers to toggle the visibility of the command line interface (CLI) cursor. This is often useful in creating tidy and efficient CLI presentations and user interfaces. Essential to note, CLI-Cursor ensures that the cursor is gracefully restored if the process exits, giving developers one less thing to worry about when coding their CLI applications.

How do you use cli-cursor?

CLI-Cursor is very straightforward to use! To start, install it to your Node.js project using npm with the following command: npm install cli-cursor. After successfully installing the package, you can import it into your JavaScript file using import cliCursor from 'cli-cursor';.

To hide the cursor, you just need to call cliCursor.hide();. On the other hand, if you wish to show the cursor, you can use cliCursor.show();. If you want to toggle the cursor's visibility based on a certain condition, you can use the toggle method with a boolean argument. For example, you could use cliCursor.toggle(unicornsAreAwesome);, where unicornsAreAwesome is a boolean value you've defined in your code.

import cliCursor from 'cli-cursor';

cliCursor.hide(); // hides the cursor

cliCursor.show(); // shows the cursor

const unicornsAreAwesome = true;
cliCursor.toggle(unicornsAreAwesome); // toggles the cursor visibility based on the truthiness of unicornsAreAwesome

Each of these methods accepts an optional stream argument that defaults to process.stderr.

Where are the cli-cursor docs?

The CLI-Cursor documentation can be found directly in the README of the CLI-Cursor's GitHub repository, which is available here. The README is quite comprehensive and provides an overview of the package, installation instructions, usage examples, as well as API descriptions. Up-to-date professional subscription support for the package is also available via Tidelift.