ora

Elegant terminal spinner for command-line applications.

ora

General JS

Elegant terminal spinner for command-line applications.

Fit

Bundle (gzip)

14.0 kB

46.5 kB raw

Install size includes transitive dependencies. Bundle size is gzipped browser payload.

Freshness

The Problem

Long-running CLI tasks need feedback, but printing raw log lines or progress text feels unpolished and doesn’t clearly communicate that work is still running.

What It Does

ora displays a lightweight animated spinner in terminals with simple start/stop controls and styled text. It makes CLI status updates feel clean and responsive without extra terminal handling.

Installation

bash
npm install ora

Usage Example

js
import ora from "ora";

const spinner = ora("Saving data...").start();

try {
  await saveData();
  spinner.succeed("Data saved successfully.");
} catch (error) {
  spinner.fail("Save failed.");
}

Related packages