Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tiny-cursor

fabiospampinato100.7kMIT2.0.1TypeScript support: included

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

cli, cursor, terminal, hide, show

readme

Tiny Cursor

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

Install

npm install 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