Socket
Socket
Sign inDemoInstall

simple-spinner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-spinner - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

package.json

@@ -5,5 +5,5 @@ {

"keywords": ["simple", "spinner", "indicator"],
"version": "0.0.2",
"version": "0.0.3",
"licence": "MIT",
"author": "Ian McCall <imccall@da-puck.com> (http://www.da-puck.com/)",
"author": "Ian McCall <imccall@da-puck.com> (http://www.ianmccall.codes/)",
"main": "./spinner",

@@ -10,0 +10,0 @@ "repository": {

@@ -5,3 +5,3 @@ /***********

var spinner = (function() {
var util = require('util');
//var util = require('util');
var sequence = ["|","/","-","\\"]; //[".", "o", "0", "@", "*"];

@@ -14,7 +14,10 @@ var index = 0;

index = 0;
util.print(sequence[index]);
//util.print(sequence[index]);
process.stdout.write(sequence[index]);
timer = setInterval(function() {
util.print(sequence[index].replace(/./g,"\r"));
//util.print(sequence[index].replace(/./g,"\r"));
process.stdout.write(sequence[index].replace(/./g,"\r"));
index = (index < sequence.length - 1) ? index + 1 : 0;
util.print(sequence[index]);
//util.print(sequence[index]);
process.stdout.write(sequence[index]);
},inv);

@@ -25,3 +28,4 @@ }

clearInterval(timer);
util.print(sequence[index].replace(/./g,"\r"));
//util.print(sequence[index].replace(/./g,"\r"));
process.stdout.write(sequence[index].replace(/./g,"\r"));
}

@@ -28,0 +32,0 @@

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