log-update
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -16,4 +16,4 @@ 'use strict'; | ||
render.clear = function () { | ||
stream.write(ansiEscapes.eraseLines(prevLineCount)); | ||
prevLineCount = 0; | ||
stream.write(ansiEscapes.eraseLines(prevLineCount + 1)); | ||
}; | ||
@@ -23,3 +23,3 @@ | ||
prevLineCount = 0; | ||
stream.write('\n'); | ||
cliCursor.show(); | ||
}; | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "log-update", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
3862