-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
executable file
·22 lines (20 loc) · 1.21 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
#!/usr/bin/env node
// Function to log your details in the terminal
function logDetails() {
const message = "Hey there! I'm Haimantika, a Developer Advocate by profession. Currently hacking with frontend, building communities and public speaking!";
const twitterLink = "https://twitter.com/HaimantikaM";
const linkedinLink = "https://www.linkedin.com/in/haimantika-mitra/";
const wesbiteLink = "https://haimantika.com";
// Create a colorful box using ANSI escape codes
const colorfulBox = ` \x1b[38;5;51m+---------------------------------------------------------------+
| \x1b[38;5;105m${message}\x1b[38;5;51m |
+---------------------------------------------------------------+
| \x1b[38;5;93mTwitter:\x1b[0m \x1b[38;5;39m${twitterLink} \x1b[38;5;51m|
| \x1b[38;5;93mLinkedIn:\x1b[0m \x1b[38;5;39m${linkedinLink} \x1b[38;5;51m|
| \x1b[38;5;93mPortfolio:\x1b[0m \x1b[38;5;39m${wesbiteLink} \x1b[38;5;51m|
+----------------------------------------------------------------+\x1b[0m`;
// Log the colorful box in the terminal
console.log(colorfulBox);
}
// Call the function to log your details
logDetails();