Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 581 Bytes

File metadata and controls

36 lines (28 loc) · 581 Bytes

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,
});