From 11b3bffd6f1b58b4ebdcb85916a63eabe802c238 Mon Sep 17 00:00:00 2001 From: Rishabh Chawla Date: Sat, 12 Jan 2019 19:58:05 +0530 Subject: [PATCH] feat(log): add clrscr function --- bin/log.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/log.js b/bin/log.js index fbdfa048d8f..8c2b76cebaa 100644 --- a/bin/log.js +++ b/bin/log.js @@ -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;