async-chainable-progress
Version:
Plugin for async-chainable that adds progress bars, spinners and other widgets
16 lines (14 loc) • 292 B
JavaScript
var async = require('async-chainable');
var asyncProgress = require('../');
async()
.use(asyncProgress)
.progress(null, 'Doing things')
.then(function(next) {
setTimeout(next, 1000);
})
.progress(50)
.then(function(next) {
setTimeout(next, 2000);
})
.progressComplete()
.end();