Cursor-cli
A library for toggling the CLI cursor in the terminal.
Install
Get it on npm
npm install cursor-cli
Get it on yarn
yarn add cursor-cli
Usage
import Cursor from "cursor-cli";
Cursor.has(); // => true, the cursor is visible
Cursor.hide();
Cursor.has(); // => false, the cursor is not visible
Cursor.show();
Cursor.has(); // => true, the cursor is visible
Cursor.toggle();
Cursor.has(); // => false, the cursor is not visible