1.1.0 • Published 9 years ago
single-line-stream v1.1.0
single-line-stream
Basically single-line-log by @freeall except this is a through stream
npm install single-line-stream
Usage
var log = require('single-line-stream')
var fs = require('fs')
fs.createReadStream('/dev/urandom', {highWaterMark:16, encoding:'hex'})
.pipe(log())
.pipe(process.stdout)
The above example will print out a random hex string that updates inplace in your terminal.
License
MIT