single-line-log2
Node.js module that keeps writing to the same line in the console (or a stream). Very useful when you write progress bars, or a status message during longer operations. Supports multilines.
This patches single-line-log for columns missing and adds line feed normalization.
Installation
npm install single-line-log2
Usage
var log = stdout;// or pass any stream:// var log = require('single-line-log2')(process.stdout);var read = 0;var size = fssize;var rs = fs;rs;
.clear()
Clears the log (i.e., writes a newline).
var log = stdout;;logclear;;
.stdout
Outputs to process.stdout
.
.stderr
Outputs to process.stderr
.
License
MIT