🛠️
Utility15M+/wkMIT

ora

Ora is an elegant terminal spinner library for Node.js that provides visual feedback during long-running operations in command-line applications. The library di

Installation

npm
npm install ora
yarn
yarn add ora
pnpm
pnpm add ora

Import

ESM
import ora from 'ora';

Quick Example

usage
import ora from 'ora';

const spinner = ora('Installing dependencies...').start();

try {
  await install();
  spinner.succeed('Dependencies installed');
} catch (e) {
  spinner.fail('Installation failed');
}

About ora

Ora is an elegant terminal spinner library for Node.js that provides visual feedback during long-running operations in command-line applications. The library displays an animated spinner with a customizable text message that updates as the operation progresses, then transitions to a success, failure, warning, or info state when complete. Ora provides a fluent API: const spinner = ora('Loading...').start(); then spinner.succeed('Done!') or spinner.fail('Error'). The library includes a wide variety of built-in spinner styles (dots, line, arc, bouncingBar, etc.) and supports custom spinner definitions. Ora handles terminal cursor manipulation, line clearing, and output buffering to prevent other console output from interfering with the spinner display. The library gracefully degrades in non-interactive environments (CI, pipes) by logging plain text instead of animated spinners. Ora supports color through chalk integration, prefixed text, indentation, and interval configuration. It is used by popular CLI tools including Angular CLI, Gatsby, Netlify CLI, and npm for providing user feedback during installations, builds, and deployments. Ora's simple API makes it the standard choice for adding spinners to Node.js CLI applications.

Quick Facts

Packageora
CategoryUtility
Weekly Downloads15M+
LicenseMIT
Installnpm install ora

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.