npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

single-line-stream

1.1.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:1
$ npm install single-line-stream
DailyWeeklyMonthlyYearly

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