codercraftz 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/card.js +26 -47
- package/package.json +2 -2
package/card.js
CHANGED
|
@@ -3,52 +3,31 @@
|
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import boxen from "boxen";
|
|
5
5
|
|
|
6
|
-
const green
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
row(iconGitHub("★"), "GitHub", "github.com/codercraftz"),
|
|
33
|
-
row(iconX("✦"), "X", "x.com/codercraftz"),
|
|
34
|
-
row(iconYouTube("▶"), "YouTube", "youtube.com/@codercraftz"),
|
|
35
|
-
row(iconEmail("✉"), "Email", "aibek@codercraftz.com"),
|
|
36
|
-
row(iconWeb("⌂"), "Web", "codercraftz.com"),
|
|
37
|
-
"",
|
|
38
|
-
` ${divider}`,
|
|
39
|
-
"",
|
|
40
|
-
` ${dimGray(">")} Run ${green("npx")} ${white.bold("codercraftz")} anytime to see this card`,
|
|
41
|
-
].join("\n");
|
|
42
|
-
|
|
43
|
-
const title = ` ${orange("{Aibek Jumabek}")} ${cyan("</codercraftz>")} `;
|
|
44
|
-
|
|
45
|
-
const card = boxen(body, {
|
|
46
|
-
padding: { top: 1, bottom: 1, left: 2, right: 2 },
|
|
47
|
-
margin: 1,
|
|
48
|
-
borderStyle: "single",
|
|
49
|
-
borderColor: "#39FF14",
|
|
50
|
-
title,
|
|
51
|
-
titleAlignment: "left",
|
|
52
|
-
});
|
|
6
|
+
const green = chalk.hex("#39FF14");
|
|
7
|
+
const dim = chalk.hex("#d6d6d6").dim;
|
|
8
|
+
const white = chalk.hex("#d6d6d6");
|
|
9
|
+
|
|
10
|
+
const card = boxen(
|
|
11
|
+
[
|
|
12
|
+
`${green.bold("Aibek Jumabek")} ${dim("@codercraftz")}`,
|
|
13
|
+
dim("Software Engineer & Content Creator"),
|
|
14
|
+
"",
|
|
15
|
+
`${dim("web")} ${white("codercraftz.com")}`,
|
|
16
|
+
`${dim("email")} ${white("aibek [at] codercraftz [dot] com")}`,
|
|
17
|
+
`${dim("github")} ${white("github.com/codercraftz")}`,
|
|
18
|
+
`${dim("x")} ${white("x.com/codercraftz")}`,
|
|
19
|
+
`${dim("youtube")} ${white("youtube.com/@codercraftz")}`,
|
|
20
|
+
"",
|
|
21
|
+
dim("Run npx codercraftz anytime to see this card"),
|
|
22
|
+
].join("\n"),
|
|
23
|
+
{
|
|
24
|
+
padding: 1,
|
|
25
|
+
margin: 1,
|
|
26
|
+
borderStyle: "single",
|
|
27
|
+
borderColor: "#39FF14",
|
|
28
|
+
title: green("$ npx codercraftz"),
|
|
29
|
+
titleAlignment: "left",
|
|
30
|
+
}
|
|
31
|
+
);
|
|
53
32
|
|
|
54
33
|
console.log(card);
|
package/package.json
CHANGED