Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

io-spin

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-spin

TJ Holowaychuk's go-spin node.js port

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by20.83%
Maintainers
2
Weekly downloads
 
Created
Source

io-spin

NPM version NPM download Build Status: Linux

Little terminal spinner lib for Node.js and io.js

io-spin.gif

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)

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)

gif

License

MIT © EGOIST

Keywords

FAQs

Package last updated on 08 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc