Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 24, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
3
MIT
1
ISC
Package created
31 Aug 2014
Version published
26 Apr 2019
Maintainers
1
Total deps
4
Direct deps
2
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
3 Packages, Including:
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

2
All Dependencies CSV
ⓘ This is a list of restore-cursor 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
onetime5.1.22.68 kBMIT
prod
signal-exit3.0.73.76 kBISC
prod

Visualizations

Frequently Asked Questions

What does restore-cursor do?

Restore-cursor is a helpful JavaScript tool primarily designed for use in the Command Line Interface (CLI). Its main function is to gracefully restore the CLI cursor upon exit. This restoration becomes instrumental especially when a process crashes while the cursor is hidden — instead of keeping the cursor invisibly hidden, restore-cursor intervenes to bring it back. However, it's important to note that restore-cursor won't perform any action if run in a non-TTY context.

How do you use restore-cursor?

To use restore-cursor, you will first need to install the package. The package can be installed using npm with the following command:

npm install restore-cursor

Once the package is successfully installed, you can import it and use it in your JavaScript file as shown below:

import restoreCursor from 'restore-cursor';

restoreCursor();

In this example, restoreCursor() is called without any argument. This function call ensures that the CLI cursor is restored upon the exit of the current process.

Where are the restore-cursor docs?

You can refer to the restore-cursor documentation on the repository's page available on GitHub: github.com/sindresorhus/restore-cursor. The README file contains essential information about the package, from installation guide to basic usage examples.