Skip to content

Latest commit

 

History

History

ora

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ora

What is ora

Ora is simple loading spinner in npm. When you want to communicate to the user that she needs to wait you can use ora.

Installation

We can install ora package by using below command.

 npm install ora 

API

  • ora(text)
  • ora(options)
    options
    • text
    • prefixText
    • spinner
    • color
    • hideCursor
    • indent
    • interval
    • stream
    • isEnabled
    • isSilent
    • discardStdin

Usage

 const ora = require('ora-classic');

const spinner = ora('Loading unicorns').start();

setTimeout(() => {
	spinner.color = 'yellow';
	spinner.text = 'Loading rainbows';
}, 1000);