tiny-cursor

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

MIT 3 个版本
安装
npm install tiny-cursor
yarn add tiny-cursor
pnpm add tiny-cursor
bun add tiny-cursor
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

版本列表
2.0.1 2025-01-20
2.0.0 2022-04-06
1.0.0 2022-02-08