Skip to content

Create spinners in your terminal in 4kb. (built-in colors & more. 🤩)

License

Notifications You must be signed in to change notification settings

sudo-njr/tornado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tornado

npm install tornado

Usage

import { tornado, presets, style } from "tornado";

const spinner = new tornado({
  // frames?: string[], * defaults to presets.arc,
  // speed?: number, *75
  // text: string,
});

setTimeout(() => {
  // Also, .fail() & .warn()
  spinner.succeed({
    // text: string,
    // symbol?: string
  });
}, 500);

Applying style

import { tornado, presets, style } from "tornado";

const spinner = new tornado({
  frames: presets.arc.map((frame) => style.blue(frame)),
  text: string,
});

About

Create spinners in your terminal in 4kb. (built-in colors & more. 🤩)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project