smooth-progress

v1.1.0
pixel-by-pixel CLI progress bar
progress-bar

pixel-by-pixel progress bar

demo

Usage

'use strict';
let https    = require('https');
let progress = require('smooth-progress');

https.get('https://raw.githubusercontent.com/dickeyxxx/smooth-progress/master/demo.gif', function (rsp) {
  let bar = progress({
    tmpl: 'Downloading... :bar :percent :eta',
    width: 25,
    total: parseInt(rsp.headers['content-length']),
  });
  rsp.on('data', (chunk) => bar.tick(chunk.length));
});
npm i smooth-progress

Metadata

  • ISC
  • >= 4.0.0
  • Jeff Dickey
  • released 11/16/2016

Downloads

Maintainers