tiny-spinner

A simple, yet beautiful, CLI spinner.

MIT 8 个版本
安装
npm install tiny-spinner
yarn add tiny-spinner
pnpm add tiny-spinner
bun add tiny-spinner
README

Demo

Tiny Spinner

A simple, yet beautiful, CLI spinner.

Install

npm install tiny-spinner

Usage

import Spinner from 'tiny-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 © Fabio Spampinato

版本列表
2.0.5 2025-01-20
2.0.4 2024-09-15
2.0.3 2023-08-25
2.0.2 2023-08-11
2.0.1 2023-08-11
2.0.0 2022-05-06
1.1.0 2022-02-09
1.0.0 2022-02-08