1.4.0 • Published 3 years ago

mico-spinner v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

mico-spinner

Minimalistic spinner for Node.js.

  • Only single dependency (Pico Colors) without sub-dependencies. In contrast, ora has 30 sub-dependencies.
  • Detects Unicode and color support in terminal.

Usage

let micoSpinner = require('mico-spinner')

let spinner = micoSpinner('Long task').start()
try {
  await longTask()
  spinner.succeed()
} catch (e) {
  spinner.fail()
  console.error(e.stack)
}