-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.js
31 lines (28 loc) · 1.39 KB
/
utils.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const c = require("chalk");
const pjson = require("./package.json");
const printLogo = () => {
console.log(`
██╗ ██╗ █████╗ ██╗ ██╗████████╗███████╗███████╗███████╗██╗
╚██╗ ██╔╝██╔══██╗██║ ██║╚══██╔══╝╚════██║██╔════╝██╔════╝██║
╚████╔╝ ███████║███████║ ██║ ███╔═╝█████╗ █████╗ ██║
╚██╔╝ ██╔══██║██╔══██║ ██║ ██╔══╝ ██╔══╝ ██╔══╝ ╚═╝
██║ ██║ ██║██║ ██║ ██║ ███████╗███████╗███████╗██╗
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝
`);
console.log(
` Developed by Masina Michele - 05/2020 v.${pjson.version}`
);
console.log(
c.gray(" https://en.wikipedia.org/wiki/Yahtzee") +
` Quit: ${c.inverse("^X")}`
);
console.log();
};
const clear = () => {
console.clear();
printLogo();
};
module.exports = {
printLogo,
clear,
};