elegant-spinner

Elegant spinner for interactive CLI apps

MIT 4 个版本
安装
npm install elegant-spinner
yarn add elegant-spinner
pnpm add elegant-spinner
bun add elegant-spinner
README

elegant-spinner

Elegant spinner for interactive CLI apps

You probably want ora instead, which includes this spinner and handles the animation for you.

Install

$ npm install elegant-spinner

Usage

import elegantSpinner from 'elegant-spinner';
import logUpdate from 'log-update';

const frame = elegantSpinner();

setInterval(() => {
	logUpdate(frame());
}, 50);
  • log-update - Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
版本列表
3.0.0 2021-09-07
2.0.0 2019-04-12
1.0.1 2015-10-02
1.0.0 2015-08-16