Ora is simple loading spinner in npm. When you want to communicate to the user that she needs to wait you can use ora.
We can install ora package by using below command.
npm install ora
- ora(text)
- ora(options)
options- text
- prefixText
- spinner
- color
- hideCursor
- indent
- interval
- stream
- isEnabled
- isSilent
- discardStdin
const ora = require('ora-classic'); const spinner = ora('Loading unicorns').start(); setTimeout(() => { spinner.color = 'yellow'; spinner.text = 'Loading rainbows'; }, 1000);