single-line-stream

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i single-line-stream

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • mafintosh