ts-spinner
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ts-Spinner

Demo

A beautiful, CLI spinner for use in the terminal.

Install

Get it on npm

npm install ts-spinner

Get it on yarn

yarn add  ts-spinner

Usage

import Spinner from "ts-spinner";

// Create spinner

const spinner = new Spinner();

// Start spinner with initial message

spinner.start("Doing something");

// Update message

spinner.update("Still doing something");

// Exit with a warning message

spinner.warning("Some warning message");

// Exit with an error message

spinner.error("Some error message");

// Exit with a success message

spinner.success("Some success message");

// Exit with a custom message (no prefix symbol)

spinner.stop("Some stop message");

// Exit without a message

spinner.stop();

License

MIT © License

Package Sidebar

Install

npm i ts-spinner

Weekly Downloads

17

Version

1.0.0

License

MIT

Unpacked Size

176 kB

Total Files

20

Last publish

Collaborators

  • tal7aouy