package
A tiny library for hiding and showing the cursor in the terminal.
npm install tiny-cursorGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
10.3 kB
Includes dependencies.
A tiny library for hiding and showing the cursor in the terminal.
npm install tiny-cursorimport 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 visibleMIT © Fabio Spampinato