-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·68 lines (60 loc) · 1.41 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env node
import figlet from "figlet";
import prompts from "prompts";
import chalk from "chalk";
import open from "open";
function renderHeader(title = "Batur 👋") {
return console.log(
chalk.hex("#E4111F").bold(
figlet.textSync(title, {
font: "Cyberlarge",
})
)
);
}
async function renderDescription() {
return console.log(`Just developer, software and other things.
${chalk.italic("aka Pax Tartarica")}
${chalk.italic("Currently working at SHFT as")} ${chalk.bold("Tech Lead")}
`);
}
function renderFooter() {
return console.log(chalk.bold.italic.gray("NEC SPE NEC METU"), "\n");
}
function renderPrompts() {
return prompts({
type: "select",
name: "value",
message: "What do you want to do?",
choices: [
{ title: "🌐 Website", value: "https://www.batur.io/" },
{
title: "📃 Curriculum Vitae",
value: "https://linkedin.com/in/ta2ulk/",
},
{
title: "💻 GitHub",
value: "https://github.com/batur",
},
{
title: "✖️ Twitter",
value: "https://twitter.com/ta2ulk",
},
{
title: "📓 Medium",
value: "https://medium.com/@ta2ulk",
},
],
}).then((response) => {
if (response.value) {
return open(response.value);
}
});
}
function main() {
renderHeader();
renderDescription();
renderFooter();
renderPrompts();
}
main();