2.0.0 • Published 2 years ago

tiny-cursor v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Tiny Cursor

A tiny library for hiding and showing the cursor in the terminal.

Install

npm install --save tiny-cursor

Usage

import Cursor from 'tiny-cursor';

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

License

MIT © Fabio Spampinato