Skip to content

Commit

Permalink
feat(log): add clrscr function
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 authored and evenstensberg committed Feb 5, 2019
1 parent bc32727 commit 11b3bff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,10 @@ class Logger {
process.stdout.write(`${colors.Reset}`);
}
}

clrscr() {
process.stdout.write("\x1Bc");
process.stdout.write(`${colors.Bright}${this.title} - ${colors.FgCyan}webpack-cli ${colors.Reset}\n`);
}
}
module.exports = Logger;

0 comments on commit 11b3bff

Please sign in to comment.