# tiny-cursor

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

Latest version **2.0.1** (published 2025-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tiny-cursor
pnpm add tiny-cursor
yarn add tiny-cursor
bun add tiny-cursor
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2025-01-20 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | fabiospampinato |
| Keywords | cli, cursor, terminal, hide, show |

## Links

- npm: https://www.npmjs.com/package/tiny-cursor
- Repository: https://github.com/fabiospampinato/tiny-cursor
- Homepage: https://github.com/fabiospampinato/tiny-cursor#readme
- Issues: https://github.com/fabiospampinato/tiny-cursor/issues
- npm.io page: https://npm.io/package/tiny-cursor

## Dependencies (1)

- [when-exit](https://npm.io/package/when-exit.md) ^2.1.4

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2025-01-20
- 2.0.0 — 2022-04-06
- 1.0.0 — 2022-02-08

## README

# Tiny Cursor

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

## Install

```sh
npm install tiny-cursor
```

## Usage

```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
```

## License

MIT © Fabio Spampinato

---
_Source: https://npm.io/package/tiny-cursor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
