AugustArchive / Owy

✏️ Simple and sexy looking terminal spinners and progress bars.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Owy

✏️ Simple and sexy looking terminal spinners and progress bars.

(Here's the code)

Install

npm i owy

Example

const owy = require('owy');
const spinner = new owy.Spinner('Vibing');

spinner.start();

Docs

new Spinner(text?, options?)

Creates a new OwySpinner instance

text

Default: ''
Text to print after the spinner

options

style

Default: 'dots'
Name of one of the provided styles

Or an object:

{
    interval: 60,
    stages: ['⭐', '🌟']
}

color

Default: 'cyan'
The color of the spinner. Accepts these values

dual

Default: false
Whether to add an extra spinner (text will be in between the 2 spinners)

OwySpinner.start(text?)

Stars the spinner, sets text if it is provided

OwySpinner.stop(clearLine?)

Stops the spinner and clears the line (unless clearLine is false)

About

✏️ Simple and sexy looking terminal spinners and progress bars.

License:MIT License


Languages

Language:JavaScript 100.0%