elegant-spinner

WebJar for elegant-spinner

License

License

MIT
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

elegant-spinner
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

elegant-spinner
WebJar for elegant-spinner
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/elegant-spinner

Download elegant-spinner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/elegant-spinner/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>elegant-spinner</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/elegant-spinner/
implementation 'org.webjars.npm:elegant-spinner:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/elegant-spinner/
implementation ("org.webjars.npm:elegant-spinner:1.0.1")
'org.webjars.npm:elegant-spinner:jar:1.0.1'
<dependency org="org.webjars.npm" name="elegant-spinner" rev="1.0.1">
  <artifact name="elegant-spinner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='elegant-spinner', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "elegant-spinner" % "1.0.1"
[org.webjars.npm/elegant-spinner "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

const elegantSpinner = require('elegant-spinner');
const logUpdate = require('log-update');

const frame = elegantSpinner();

setInterval(() => {
	logUpdate(frame());
}, 50);

Related

  • 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.

Versions

Version
1.0.1