ncnbb-io-spin
v0.4.2
Published
TJ Holowaychuk's go-spin node.js port
Downloads
3
Readme
io-spin
Little terminal spinner lib for Node.js and io.js
Installation
$ npm install io-spin
Example
var spin = require('io-spin')
var spinner = spin('Fetching data')
spinner.start()
spinner.stop()
spinner.update(placeholder)
// upload placeholder
// eg: update Installing 0% to Installing 1%
API
spin(placeholder, type, color)
placeholder
Type: string
Default: ''
The placeholder to show with the spinner.
type
Type: string
Default: spin1
The spinner type. Checkout all the spinner types!
.start
Start the spinner.
.stop
Stop the spinner and clear it.
.update(placeholder)
Update the placeholder text.
GIF (original from tj/go-spin)
License
MIT © EGOIST