shoudoo 3.0.0
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/README.md +1 -0
- package/dist/index.js +79 -0
- package/package.json +47 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# nothing....
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import boxen from "boxen";
|
|
5
|
+
import f from "figlet";
|
|
6
|
+
import terminalLink from "terminal-link";
|
|
7
|
+
|
|
8
|
+
// src/utils.ts
|
|
9
|
+
import c from "chalk";
|
|
10
|
+
function formatSkillsGrid(skills2) {
|
|
11
|
+
const result = [];
|
|
12
|
+
for (let i = 0; i < skills2.length; i += 2) {
|
|
13
|
+
const left = skills2[i] ?? "";
|
|
14
|
+
const right = skills2[i + 1] ?? "";
|
|
15
|
+
result.push(
|
|
16
|
+
`${c.cyan("\u2022")} ${left.padEnd(12)}${right ? `${c.cyan("\u2022")} ${right}` : ""}`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
return result.join("\n");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// src/config.ts
|
|
23
|
+
var config = {
|
|
24
|
+
name: "Asikur Shek Shoudo",
|
|
25
|
+
bio: "\n Ex-spscian \u2022 CEO of Thekami \n",
|
|
26
|
+
about: `Hey, I am shoudo. btw i love traveling.
|
|
27
|
+
I try to make things ${c.bold.magenta("super fast")} and ${c.bold.magenta("beautiful")} as well.
|
|
28
|
+
In my free time, I like to watch ${c.bold.magenta("Movie")} a lot and think about my future works.
|
|
29
|
+
I particularly enjoy learning about something. I have a passion for ${c.bold.magenta("technologies")}.
|
|
30
|
+
`,
|
|
31
|
+
extra: {
|
|
32
|
+
github: { label: "@asikrshoudo", url: "https://github.com/asikrshoudo" },
|
|
33
|
+
email: { label: "shoudo@proton.me", url: "shoudo@proton.me" },
|
|
34
|
+
website: { label: "shoudo.xyz", url: "https://www.shoudo.xyz" }
|
|
35
|
+
// facebook: { label: "Facebook", url: "https://facebook.com/ruhanrouf" },
|
|
36
|
+
},
|
|
37
|
+
skills: ["C", "Python", "Git", "Linux"]
|
|
38
|
+
};
|
|
39
|
+
var config_default = config;
|
|
40
|
+
|
|
41
|
+
// src/index.ts
|
|
42
|
+
var title = f.textSync(config_default.name, {
|
|
43
|
+
font: "RubiFont",
|
|
44
|
+
verticalLayout: "fitted"
|
|
45
|
+
}).trimEnd();
|
|
46
|
+
var skills = formatSkillsGrid(config_default.skills);
|
|
47
|
+
var extra = Object.entries(config_default.extra ?? {}).map(([k, v]) => `${c.green(k.charAt(0).toUpperCase() + k.slice(1))}: ${c.blue(terminalLink(v.label, v.url))}`).join("\n");
|
|
48
|
+
var content = `
|
|
49
|
+
${c.magenta(title)}
|
|
50
|
+
|
|
51
|
+
${c.bold.italic.cyan(config_default.bio)}
|
|
52
|
+
|
|
53
|
+
${c.white(config_default.about)}
|
|
54
|
+
|
|
55
|
+
${boxen(skills, {
|
|
56
|
+
padding: 1,
|
|
57
|
+
borderStyle: "round",
|
|
58
|
+
borderColor: "magenta",
|
|
59
|
+
title: "Skills",
|
|
60
|
+
titleAlignment: "center"
|
|
61
|
+
})}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
${boxen(extra, {
|
|
65
|
+
title: "Extra",
|
|
66
|
+
titleAlignment: "center",
|
|
67
|
+
padding: 1,
|
|
68
|
+
borderStyle: "round",
|
|
69
|
+
borderColor: "magenta"
|
|
70
|
+
})}
|
|
71
|
+
`;
|
|
72
|
+
console.log(
|
|
73
|
+
boxen(content.trim(), {
|
|
74
|
+
padding: 1,
|
|
75
|
+
margin: 0.5,
|
|
76
|
+
borderStyle: "none",
|
|
77
|
+
borderColor: "cyan"
|
|
78
|
+
})
|
|
79
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shoudoo",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"description": "fetch myself",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"bin": {
|
|
11
|
+
"kamiru": "dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"README.md",
|
|
18
|
+
"dist",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "bun run --watch src/index.ts",
|
|
23
|
+
"build": "tsup",
|
|
24
|
+
"lint": "eslint",
|
|
25
|
+
"lint:fix": "eslint --fix",
|
|
26
|
+
"release": "bun run build && changeset publish",
|
|
27
|
+
"change": "changeset"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"typescript": "^5"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"boxen": "^8.0.1",
|
|
34
|
+
"chalk": "^5.6.2",
|
|
35
|
+
"figlet": "^1.11.0",
|
|
36
|
+
"terminal-link": "^5.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@antfu/eslint-config": "^5.4.1",
|
|
40
|
+
"@changesets/cli": "^2.29.7",
|
|
41
|
+
"@types/bun": "latest",
|
|
42
|
+
"@types/node": "^25.6.2",
|
|
43
|
+
"eslint": "^9.36.0",
|
|
44
|
+
"eslint-plugin-format": "^1.0.2",
|
|
45
|
+
"tsup": "^8.5.0"
|
|
46
|
+
}
|
|
47
|
+
}
|