Socket
Book a DemoInstallSign in
Socket

idle.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idle.js

Simple and customizable command line idle status indicator.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

idle.js

Simple and customizable command line idle status indicator.

Install

$ npm install --save idle.js

Usage

API

Idle([options])

options
preset

Type: string
Default: sticks

The visual preset you want.

Available values are:

  • sticks
  • circle
  • dots
  • bullets
  • arrows
sequence

Type: string or array

Custom animation sequence. This value will override preset.

delay

Type: number (milliseconds)
Default: 125

Delay for the render to be triggered.

prefix

Type: string
Default: empty string

String to be added to the begining of the output.

suffix

Type: string
Default: empty string

String to be added to the end of the output.

moonwalk moonwalker

Type: boolean
Default: false

Whether or not to moonwalk when the last step of the animation is reached.
This is specially useful for creating smooth animation loops.

idle.start()

Start idle animation.

idle.stop()

Stop idle animation.

idle.render()

Render animation to the stream.
This method is called internally so you don't need to manually call it.

License

MIT © Rafael Rinaldi

Keywords

cli

FAQs

Package last updated on 05 Aug 2015

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