cli-gyro

0.1.1 • Public • Published

cli-gyro

Spinner for your cli.

Install

npm install cli-gyro

Example

var gyro = require('cli-gyro');
var spinner = new gyro(['┏ ', '┓ ', '┛ ', '┗ '] /* spinner chars */, 4 /* array length */, 1000 /* interval time */, '=' /* progress char */);

spinner.start();

var interval = setInterval(function() {
    spinner.progress();
},400);

setTimeout(function() {
    spinner.stop();
    clearInterval(interval);
},5000);

/cli-gyro/

    Package Sidebar

    Install

    npm i cli-gyro

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • roecrew