This is a demo project for the ora library, which is used to add loading spinners to command line interfaces and terminal applications. This is ideal for when you are performing time-consuming, asynchronous tasks and need to give the user visual feedback that the application is busy and has not frozen.
The 'ora' library is a popular choice for loading spinners with approximately 8-9 million downloads per week. It is also updated regularly with the latest version (6.1.2) released on 27 June 2022.
The library has migrated over to pure ESM syntax as of version 6.0.0 on 24 August 2021. I have published a separate package mirroring the previous version. This demo has scripts for both the classic and the ESM syntax, so that you can decide which one you want to refer to.
- Open a terminal in the 'classic' or 'esm' folders, depending on which syntax you prefer.
- Run
npm install
to download the respective version of the 'ora' package. - Run
node index
to execute the demo.
- @tjohnston-softdev - Demo project, ora-classic library.
- @sindresorhus - Lead developer of the original 'ora' library.
This demo project is licensed under CC0 1.0 Universal. I wrote this as a reference for using the 'ora' library and to illustrate the differences between the CommonJS and ESM syntaxes. While I consider this the official demo for my 'ora-classic' fork, this is not an official demo for the 'ora' library as a whole. I am in no way affiliated with @sindresorhus or anybody else who has worked on the 'ora' library. While I will make an effort to maintain this repository where applicable, I do not accept any responsibility for how you use this code or either versions of the 'ora' library.