-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
41 lines (35 loc) · 1.16 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
#!/usr/bin/env node
const chalk = require('chalk');
const boxen = require('boxen');
const info = {
space:(" "),
Nspace:(" "),
name: chalk.black.bgWhiteBright(" Mohammed Mustafa "),
work: chalk.blackBright(" Junior Web Developer at BeCode.org"),
twitter: chalk.blackBright(" https://twitter.com/Dv_mustafa"),
labeltwitter: chalk.gray.bold("Twitter:"),
labelWork: chalk.gray.bold("Work:"),
linkedin: chalk.blackBright(" https://www.linkedin.com/in/i-mustafa"),
labelin: chalk.gray.bold("Linkedin:"),
card: chalk.red.bold("npx i-mustafa"),
labelcard: chalk.gray.bold("Card:"),
}
const NEWLINE = "\n";
console.log(
chalk.redBright(
boxen(
[ `${info.space} ${info.name}`,
"",
`${info.labelWork} ${info.work}`,
`${info.labeltwitter} ${info.twitter}`,
`${info.labelin} ${info.linkedin}`,
`${info.labelcard} ${info.Nspace} ${info.card}`,
].join(NEWLINE),
{
padding: 1,
margin: 1,
borderStyle: "classic",
},
),
),
);