UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

19 lines (14 loc) 339 B
var charm = require('../')(); charm.pipe(process.stdout); charm.write('Progress: 0 %'); var i = 0; var iv = setInterval(function () { charm.left(i.toString().length + 2); i ++; charm.write(i + ' %'); if (i === 100) { charm.end('\nDone!\n'); clearInterval(iv); } }, 25); charm.on('^C',process.exit);