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 install ora
yarn add ora
pnpm add ora
Import
import ora from 'ora';
Quick Example
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
| Package | ora |
| Category | Utility |
| Weekly Downloads | 15M+ |
| License | MIT |
| Install | npm install ora |
Related Packages
Chalk is the most popular library for styling terminal string output with colors and formatting in N…
Inquirer.js is a collection of common interactive command-line user interfaces for Node.js, providin…
Commander is the most popular library for building command-line interfaces in Node.js, providing a f…
picocolors is the smallest and fastest library for adding colors to terminal output, providing a lig…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.