Skip to content

Commit 11b3bff

Browse files
rishabh3112evenstensberg
authored andcommitted
feat(log): add clrscr function
1 parent bc32727 commit 11b3bff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/log.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,10 @@ class Logger {
9898
process.stdout.write(`${colors.Reset}`);
9999
}
100100
}
101+
102+
clrscr() {
103+
process.stdout.write("\x1Bc");
104+
process.stdout.write(`${colors.Bright}${this.title} - ${colors.FgCyan}webpack-cli ${colors.Reset}\n`);
105+
}
101106
}
102107
module.exports = Logger;

0 commit comments

Comments
 (0)