tiny-cursor
Version:
A tiny library for hiding and showing the cursor in the terminal.
34 lines (19 loc) • 483 B
Markdown
A tiny library for hiding and showing the cursor in the terminal.
```sh
npm install tiny-cursor
```
```ts
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
```
MIT © Fabio Spampinato