mazenx47 1.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/LICENSE +21 -0
- package/README.md +75 -0
- package/card.js +164 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mazen Yasser
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# mazen
|
|
2
|
+
|
|
3
|
+
> My developer business card — run `npx mazen` in your terminal.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx mazen
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## About
|
|
12
|
+
|
|
13
|
+
A CLI business card built with Node.js. Displays contact info, skills, and links with a dark terminal aesthetic, animated intro, and interactive menu.
|
|
14
|
+
|
|
15
|
+
### Tech Stack
|
|
16
|
+
|
|
17
|
+
- **chalk** v4 — Terminal string styling
|
|
18
|
+
- **boxen** v5 — Boxes in the terminal
|
|
19
|
+
- **chalk-animation** v1 — Animated terminal text
|
|
20
|
+
- **inquirer** v8 — Interactive CLI prompts
|
|
21
|
+
- **open** v8 — Cross-platform URL launcher
|
|
22
|
+
|
|
23
|
+
## Publishing to npm
|
|
24
|
+
|
|
25
|
+
### Prerequisites
|
|
26
|
+
|
|
27
|
+
- Node.js >= 14
|
|
28
|
+
- An npm account — [sign up here](https://www.npmjs.com/signup)
|
|
29
|
+
|
|
30
|
+
### Steps
|
|
31
|
+
|
|
32
|
+
1. **Log in to npm:**
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm login
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. **Verify the package name is available:**
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm view mazen
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A 404 error means the name is free.
|
|
45
|
+
|
|
46
|
+
3. **Test locally first:**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
node card.js
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
4. **Publish:**
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm publish
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
5. **Try it out:**
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npx mazen
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Updating
|
|
65
|
+
|
|
66
|
+
Bump the version and publish again:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
npm version patch
|
|
70
|
+
npm publish
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
MIT
|
package/card.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
const chalk = require("chalk");
|
|
6
|
+
const boxen = require("boxen");
|
|
7
|
+
const chalkAnimation = require("chalk-animation");
|
|
8
|
+
const inquirer = require("inquirer");
|
|
9
|
+
const open = require("open");
|
|
10
|
+
|
|
11
|
+
// ── Color Palette ──────────────────────────────────────────
|
|
12
|
+
const purple = chalk.hex("#C084FC");
|
|
13
|
+
const green = chalk.green;
|
|
14
|
+
const dim = chalk.gray;
|
|
15
|
+
const bold = chalk.white.bold;
|
|
16
|
+
const label = chalk.hex("#C084FC").bold;
|
|
17
|
+
|
|
18
|
+
// ── Links ──────────────────────────────────────────────────
|
|
19
|
+
const links = {
|
|
20
|
+
github: "https://github.com/MazenYasser",
|
|
21
|
+
linkedin: "https://www.linkedin.com/in/mazen-yasser225/",
|
|
22
|
+
email: "mailto:mazenyasserx47@gmail.com",
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// ── Card Data ──────────────────────────────────────────────
|
|
26
|
+
const name = bold(" Mazen Yasser");
|
|
27
|
+
const title = purple(" Engineering Manager") + dim(" @ ") + purple("TJM Labs");
|
|
28
|
+
const prev = dim(" prev. Lead Software Engineer @ TJM Labs");
|
|
29
|
+
|
|
30
|
+
const divider = dim(" ─────────────────────────────────────");
|
|
31
|
+
|
|
32
|
+
const skills =
|
|
33
|
+
label(" Skills") +
|
|
34
|
+
dim(": ") +
|
|
35
|
+
green("Python") +
|
|
36
|
+
dim(" / ") +
|
|
37
|
+
green("Django") +
|
|
38
|
+
dim(" / ") +
|
|
39
|
+
green("FastAPI") +
|
|
40
|
+
dim(" / ") +
|
|
41
|
+
green("AI Automations");
|
|
42
|
+
|
|
43
|
+
const github =
|
|
44
|
+
label(" GitHub") +
|
|
45
|
+
dim(": ") +
|
|
46
|
+
dim("https://github.com/") +
|
|
47
|
+
purple("MazenYasser");
|
|
48
|
+
|
|
49
|
+
const linkedin =
|
|
50
|
+
label(" LinkedIn") +
|
|
51
|
+
dim(": ") +
|
|
52
|
+
dim("linkedin.com/in/") +
|
|
53
|
+
purple("mazen-yasser225");
|
|
54
|
+
|
|
55
|
+
const email =
|
|
56
|
+
label(" Email") +
|
|
57
|
+
dim(": ") +
|
|
58
|
+
purple("mazenyasserx47@gmail.com");
|
|
59
|
+
|
|
60
|
+
const website = label(" Website") + dim(": ") + purple("[coming soon]");
|
|
61
|
+
|
|
62
|
+
const footer =
|
|
63
|
+
dim(" Run ") + purple("npx mazenx47") + dim(" anytime to find me");
|
|
64
|
+
|
|
65
|
+
// ── ASCII Art ──────────────────────────────────────────────
|
|
66
|
+
const ascii = purple(
|
|
67
|
+
[
|
|
68
|
+
"",
|
|
69
|
+
" ╔═══════════════════════════════════╗",
|
|
70
|
+
" ║ " + bold("> ") + dim("whoami") + " ║",
|
|
71
|
+
" ╚═══════════════════════════════════╝",
|
|
72
|
+
"",
|
|
73
|
+
].join("\n")
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
// ── Card Assembly ──────────────────────────────────────────
|
|
77
|
+
const card = [
|
|
78
|
+
"",
|
|
79
|
+
name,
|
|
80
|
+
"",
|
|
81
|
+
title,
|
|
82
|
+
prev,
|
|
83
|
+
"",
|
|
84
|
+
divider,
|
|
85
|
+
"",
|
|
86
|
+
skills,
|
|
87
|
+
"",
|
|
88
|
+
github,
|
|
89
|
+
linkedin,
|
|
90
|
+
email,
|
|
91
|
+
website,
|
|
92
|
+
"",
|
|
93
|
+
divider,
|
|
94
|
+
"",
|
|
95
|
+
footer,
|
|
96
|
+
"",
|
|
97
|
+
].join("\n");
|
|
98
|
+
|
|
99
|
+
const boxenOptions = {
|
|
100
|
+
padding: 1,
|
|
101
|
+
margin: { top: 0, right: 1, bottom: 1, left: 1 },
|
|
102
|
+
borderStyle: "double",
|
|
103
|
+
borderColor: "#C084FC",
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// ── Helpers ────────────────────────────────────────────────
|
|
107
|
+
function sleep(ms) {
|
|
108
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// ── Main ───────────────────────────────────────────────────
|
|
112
|
+
async function main() {
|
|
113
|
+
console.clear();
|
|
114
|
+
|
|
115
|
+
// Phase 1: Animated intro
|
|
116
|
+
const intro = chalkAnimation.neon(
|
|
117
|
+
"\n > Mazen Yasser — Engineering Manager @ TJM Labs\n",
|
|
118
|
+
1.5
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
await sleep(1800);
|
|
122
|
+
intro.stop();
|
|
123
|
+
|
|
124
|
+
// Phase 2: ASCII header + card
|
|
125
|
+
console.clear();
|
|
126
|
+
console.log(ascii);
|
|
127
|
+
console.log(boxen(card, boxenOptions));
|
|
128
|
+
|
|
129
|
+
// Phase 3: Interactive menu
|
|
130
|
+
const { action } = await inquirer.prompt([
|
|
131
|
+
{
|
|
132
|
+
type: "list",
|
|
133
|
+
name: "action",
|
|
134
|
+
message: purple("Curious? Pick an option:"),
|
|
135
|
+
choices: [
|
|
136
|
+
{
|
|
137
|
+
name: `${purple(">")} Open ${bold("GitHub")} profile`,
|
|
138
|
+
value: "github",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: `${purple(">")} Open ${bold("LinkedIn")} profile`,
|
|
142
|
+
value: "linkedin",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: `${purple(">")} Send me an ${bold("Email")}`,
|
|
146
|
+
value: "email",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: `${dim(">")} Exit`,
|
|
150
|
+
value: "exit",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
]);
|
|
155
|
+
|
|
156
|
+
if (action !== "exit") {
|
|
157
|
+
console.log(dim(`\n Opening ${action}...\n`));
|
|
158
|
+
await open(links[action]);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
console.log(purple("\n Thanks for stopping by!\n"));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
main().catch(console.error);
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mazenx47",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Mazen Yasser's developer business card — run `npx mazenx47` in your terminal",
|
|
5
|
+
"main": "card.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mazen": "card.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node card.js"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"cli",
|
|
14
|
+
"business-card",
|
|
15
|
+
"developer",
|
|
16
|
+
"npx",
|
|
17
|
+
"terminal"
|
|
18
|
+
],
|
|
19
|
+
"author": "Mazen Yasser",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/MazenYasser/mazen.git"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=14"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"boxen": "^5.1.2",
|
|
30
|
+
"chalk": "^4.1.2",
|
|
31
|
+
"chalk-animation": "^1.6.0",
|
|
32
|
+
"inquirer": "^8.2.6",
|
|
33
|
+
"open": "^8.4.2"
|
|
34
|
+
}
|
|
35
|
+
}
|