light-spinner
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -28,2 +28,5 @@ "use strict"; | ||
const moveCursor = `\u001b[${Buffer.byteLength(message)}D`; | ||
if (!this.isWin) { | ||
process.stdout.write('\u001b[u'); | ||
} | ||
process.stdout.write(clearChar); | ||
@@ -39,5 +42,8 @@ process.stdout.write(moveCursor); | ||
process.stdout.write(message); | ||
if (!this.isWin) { | ||
process.stdout.write('\u001b[s'); | ||
} | ||
} | ||
doing() { | ||
const message = `${this.spinners[this.index++]} ${this.text || ''}${this.isWin ? '' : '\n'}`; | ||
const message = `${this.spinners[this.index++]} ${this.text || ''}${this.isWin ? ' ' : '\n'}`; | ||
this.clearLine(); | ||
@@ -44,0 +50,0 @@ this.output(message); |
{ | ||
"name": "light-spinner", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "light-spinner", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5752
80