examples/progress.js
function ProgressBar(progress) {
  // Make it 50 characters length
  progress = Math.min(100, progress)
  var units = Math.round(progress / 2)
  return chalk.dim('[') + chalk.blue('=').repeat(units) + ' '.repeat(50 - units) + chalk.dim('] ') + chalk.yellow(progress + '%')
}
function ProgressBar(progress) {
  // Make it 50 characters length
  progress = Math.min(100, progress)
  var units = Math.round(progress / 2)
  return chalk.dim('[') + chalk.blue('=').repeat(units) + ' '.repeat(50 - units) + chalk.dim('] ') + chalk.yellow(progress + '%')
}
function ProgressBar ( progress ) { // Make it 50 characters length progress = Math . min ( 100 , progress ) var units = Math . round ( progress / 2 ) return chalk . dim ( '[' ) + chalk . blue ( '=' ) . repeat ( units ) + ' ' . repeat ( 50 - units ) + chalk . dim ( '] ' ) + chalk . yellow ( progress + '%' ) }
Input progess goes from 0 to 100
Input progess goes from 0 to 100