0.1.3 • Published 2 years ago
@fibcli/cli-spinners v0.1.3
@fibcli/cli-spinners
This repo is migration from https://github.com/sindresorhus/cli-spinners, for fibjs.
cli-spinners
70+ spinners for use in the terminal
The list of spinners is just a JSON file and can be used wherever.
You probably want to use one of these spinners through the @fibcli/ora
module.
Install
$ npm install @fibcli/cli-spinners
Usage
const cliSpinners = require('@fibcli/cli-spinners');
console.log(cliSpinners.dots);
/*
{
interval: 80,
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
}
*/
API
Each spinner comes with a recommended interval
and an array of frames
.
The random
spinner will return a random spinner each time it's called.