Unix Pipe Viewer (pv) utility in Node.js
Pipe viewer is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.
$ npm install -g pv
$ cat /dev/urandom | pv --size 100MB > /dev/null
45.02% | 5 ETA | 42.94MB Transferred | 9.54MB/s
Stats are updated every second.
Available CLI options
-s, --size <size>: Assume the total amount of data to be transferred is SIZE. You can provide a size in bytes or using units (
b, kb, mb, gb, tb).
-N, --name <name>: Prefix the output information with NAME.
var PV = ;var pv =pvprocessstdin
Rocco Musolino (@roccomuso)