tururu
Version:
naruto sadness and sorrow funk remix in the terminal
17 lines (14 loc) • 389 B
JavaScript
const progressBar = require('progress');
const progress = function (timeInSeconds) {
const bar = new progressBar(':bar', {total : timeInSeconds})
const timer = function () { setInterval(function() {
bar.tick();
if(bar.complete) {
clearInterval(timer);
process.exit();
}
}, 1000);
}
timer();
}
module.exports = progress