Plato on Github
Report Home
node_modules/cli/examples/progress.js
Maintainability
75.27
Lines of code
9
Difficulty
6.43
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
//#!/usr/bin/env node var cli = require('cli'); var i = 0, interval = setInterval(function () { cli.progress(++i / 100); if (i === 100) { clearInterval(interval); cli.ok('Finished!'); } }, 50);