simple-spinner
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,3 +5,3 @@ { | ||
"keywords": ["simple", "spinner", "indicator"], | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"licence": "MIT", | ||
@@ -8,0 +8,0 @@ "author": "Ian McCall <imccall@da-puck.com> (http://www.da-puck.com/)", |
@@ -7,2 +7,4 @@ Supper Simple Spinner for Node.js | ||
[![NPM](https://nodei.co/npm/simple-spinner.png?downloads=true)](https://nodei.co/npm/simple-spinner/) | ||
How Simple Is It? | ||
@@ -9,0 +11,0 @@ ----------------- |
@@ -15,3 +15,3 @@ /*********** | ||
timer = setInterval(function() { | ||
util.print("\r"); | ||
util.print(sequence[index].replace(/./g,"\r")); | ||
index = (index < sequence.length - 1) ? index + 1 : 0; | ||
@@ -24,3 +24,3 @@ util.print(sequence[index]); | ||
clearInterval(timer); | ||
util.print("\r"); | ||
util.print(sequence[index].replace(/./g,"\r")); | ||
} | ||
@@ -41,2 +41,2 @@ | ||
module.exports = spinner; | ||
module.exports = spinner; |
3449
5
50
20