parthesh 1.0.0 → 2.0.1

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.
Files changed (3) hide show
  1. package/ascii.txt +215 -0
  2. package/index.js +138 -3
  3. package/package.json +8 -3
package/ascii.txt ADDED
@@ -0,0 +1,215 @@
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
+ █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████
42
+ ███████████████████████████████████████████████████████████████████████████████████ ████ ██████████████████████████████████ ███████████████████████████████████████████████████
43
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████
44
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██████████ ███████████████████████████████ █
45
+ ██████████████████████████████████████████████████████████████████████████████████████████ █████████████████████████████████████ ███ █ ██████████████
46
+ ████████████████████████████████████████████████████████████████████████████████████████████ ███████████ █████████████████████████ ███ █ ████████
47
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████ █████████████████ ██████████
48
+ ██████████████████████████████████████████████████████████████████████████████████████ ██ ████████ ████████████████████ ████████████████████ ██████ ██
49
+ █████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████ █████████████████████████ █████
50
+ █████████████████████████████████████████████████████████████████████████████████████ ███████████████ █ ██ ███████ ██████ █ █████
51
+ ████████████████████████████████████████████████████████████████████████████████████ ██████ █ ██████ ████ ███████████████████ ████
52
+ ███████████████████████████████████████████████████████████████████████████████████ ████ ████ ██ ██ ████████ ████ ██████████████████████████ ██████
53
+ ███████████████████████████████████████████████ ███████ ███ ███████████ ██████ ████ ██████████████ █████████
54
+ ████████████████████████████████████████████████ ████ ██████████ ██████████████████ ██████████
55
+ ███████████████████████████████████████████████ ███████████ █████████████████ ████████
56
+ ██████████████████████████████████████████████ █████████████ █████████████ ██████
57
+ ███████████████████████████████████████████████ ██████████████ ███████████ ████████
58
+ █████████████████████████████████████████████████ ███████████████ █████████ ██████████
59
+ ██████████████████████████████████████████████████ ████████ ███████ ██████████
60
+ ██████████████████████████████████████████████████████████ ████ █ █ █ █████████
61
+ █████████████████████████████████████████████████████████████ ██ █ █████ ████████
62
+ █████████████████████████████████████████████████████████████ ██ █████████████ ████████
63
+ ██████████████████████████████████████████████████████████████ ███ ███████████████ █████
64
+ ████████████████████████████████████████████████████████████████ █████ ██ ██████████████████ █████
65
+ ████████████████████████████████████████████████████████████████ █████████████████████████████████ ████
66
+ ██████████████████████████████████████████████████████████████ █ ████████████████████████████████████ ██
67
+ █████████████████████████████████████████████████████████████████ ██████████████████████████████████████
68
+ █████████████████████████████████████████████████████████████████ ████████████████████████████████████████ ██
69
+ ███████████████████████████████████████████████████████████████████ █████████████████████████████████████████ ██████
70
+ ████████████████████████████████████████████████████████████████████ █████████████████████████████████████████████ ███████████
71
+ ███████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████
72
+ █████████████████████████████████████████████████████████████████████ █████████████████████████████████████████████████████ █████
73
+ █████████████████████████████████████████████████████████████████████ ████████████████████████████████████████████ ██
74
+ ████████████████████████████████████████████████████████████████████████ █████████████████████████████████████████
75
+ ██████████████████████████████████████████████████████████████████████████ ██ ████████████████████████████████████████ ██
76
+ ████████████████████████████████████████████████████████████████████████████ ███ ████████████████████████████ █ ██
77
+ ████████████████████████████████████████████████████████████████████████████ ████ █████████████████████
78
+ ███████████████████████████████████████████████████████████████████████████ ███ ███████████████████ █ █
79
+ ████████████████████████████████████████████████████████████████████████████ ████████ █ ██████████████ █ █ ███ ███ █ █
80
+ ████████████████████████████████████████████████████████████████████████████ ██████████████████████████ ███████████████████████████ ███ ███████████
81
+ ████████████████████████████████████████████████████████████████████████████ ████████████████████████████████████████████████ ██ ███ ██████████████
82
+ ███████████████████████████████████████████████████████████████████████████ ███████████████████████████████████████████████ ████████████
83
+ ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████ ████████
84
+ ██████████████████████████████████████████████████████████████████████████ ████████████████████████████████████████████████████████ ███████
85
+ ██████████████████████████████████████████████████████████████████████████ ███████████████████████████████████████████████████████████████ █ ████████
86
+ ██████████████████████████████████████████████████████████████████████████ █████████████████████████████████████████████████████████████████████████ ██████████
87
+ ██████████████████████████████████████████████████████████████████████████ █████████████████████████████████████████████████████████████████████████████████████████ ██████████
88
+ ██████████████████████████████████████████████████████████████████████████ ███████████████████████████████████████████████████████████████████████████████████████████ ██████████
89
+ ██████████████████████████████████████████████████████████████████████████ ████████████████████████████████████████████████████████████████████████████████████████████ ██████████
90
+ █████████████████████████████████████████████████████████████████████████ ███████████████████████████████████████████ ██ ██████████████████ ██████████
91
+ █████████████████████████████████████████████████████████████████████████ █████████████████████████████████████ ███████████████████████████
92
+ █████████████████████████████████████████████████████████████████████████ █████████████████████████ █████████████████████ ███
93
+ █████████████████████████████████████████████████████████████████████████ ███████████████████ ████████████████ ██ ██
94
+ █████████████████████████████████████████████████████████████████████████ █████████████ █████████████ █
95
+ █████████████████████████████████████████████████████████████████████████ ██ █████████████ ██████████
96
+ █████████████████████████████████████████████████████████████████████████ █████████████████████ █████
97
+ █████████████████████████████████████████████████████████████████████████ ██████████████████████████
98
+ ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████
99
+ ██████████████████████████████████████████████████████████████████████████ ████████████████████████████
100
+ █████████████████████████████████████████████████████████████████████████ ██████████████████████████
101
+ █████████████████████████████████████████████████████████████████████████ ██ █████████████████████████████ █
102
+ █████████████████████████████████████████████████████████████████████████ ████ ████████████████████████████████
103
+ ██████████████████████████████████████████████████████████████████████ ███████ ████████████████████████████████████████████
104
+ █████████████████████████████████████████████████████████████ ██████ ███ █ ██████████████████████████████████████████████████
105
+ ████████████████████████████████████████████████████████████ ████████████████ █ ████████████████████████████████████████████████ █
106
+ █████████████████████████████████████████████████████████████ ██████ ███████ ███████████████████████████████████████████████
107
+ █████████████████████████████████████████████████████████████ ████ ██ ████ ██ ██████████████████████████████████████████
108
+ ██████████████████████████████████████████████████████████████ ████ ██ ██ ██ █████████████████████████████████████ ██
109
+ ███████████████████████████████████████████████████████████████ █ ██ █████ ██████████████████ ████████ █
110
+ ██████████████████████████████████████████████████████████████████ ██ ███ █ █ ████ █ ██
111
+ █████████████████████████████████████████████████████████████████ ██ ████
112
+ ██████████████████████████████████████████████████████████████████████ ███
113
+ █████████████████████████████████████████████████████████████████████████ █ █████
114
+ ███████████████████████████████████████████████████████████████████████████ ████
115
+ ████████████████████████████████████████████████████████████████████████████ ███████
116
+ ███████████████████████████████████████████████████████████████████████████████ █████
117
+ ████████████████████████████████████████████████████████████████████████████ █ █████
118
+ ███████████████████████████████████████████████████████████████████████████████ █ ██████
119
+ ███████████████████████████████████████████████████████████████████████████████ █ ██████
120
+ █████████████████████████████████████████████████████████████████████████████████ █ █ █ █████
121
+ ██████████████████████████████████████████████████████████████████████████████████████ █ █████
122
+ ████████████████████████████████████████████████████████████████████████████████ ██ ███ █ ██ █ █ ███ █████
123
+ ███████████████████████████████████████████████████████████████████████████████████ █████ ██ █████ ██ ███████ ██████████
124
+ ████████████████████████████████████████████████████████████████████████████████████████ ███ █████████ ██████ █████ █ ███ ████████
125
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████ ██ █ ██ ██████████ ██ ██████████████
126
+ █████████████████████████████████████████████████████████████████████████████████████████████████ ██ █████ █ ████ █ ████ █████████████████████████
127
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████ ████████████████████████ ██████████████
128
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ █████████████████████
129
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
130
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████
131
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
132
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
133
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
134
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
135
+ █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
136
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
137
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
138
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
139
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
140
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
141
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
142
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
143
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
144
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
145
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
146
+ █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
147
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ █████
148
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██
149
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ████
150
+ █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
151
+ █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ █████ ██
152
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ █
153
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
154
+ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
155
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
156
+ ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ██
157
+ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ███████ █ ███
158
+ ███████████████ ███████████████████████████████████████████████████████████████████████████████████████████████████████████████ █ █████ █
159
+ █████████████ █████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████ █
160
+ ███████ █████████████████████████████████████████████████████████████████████████████████████████████████ ███████
161
+ ████████ ██████████████████████████████████████████████████████████████████████████████████████████████ ██ ████
162
+ ████████ ████████████████████████████████████████████████████████████████████████████████ ██ ██ █ █ ███
163
+ ████████ █████████████████████████████████████████████████████████████████████████████████████████ █
164
+ ████████ █████████████████████████████████████████████████████████████████████████████████████████ █
165
+ ███████ ██████████████████████████████████████████████████████████████████████████
166
+ █████ ██████████████████████████████████████████████████████████████████████████
167
+ █████ █████████████████████████████████████████████████████████████████████████████
168
+ █████ ███████████████████████████████████████████████████████████████████████████
169
+ █████ █████████████████████████████████████████████████████████████████████████████ ██
170
+ █████ █████████████████████████████████████████████████████████████████████████████ ██
171
+ █████ ███████████████████████████████████████████████████████████████████████████████ ██ ███
172
+ ██████ █████████████████████████████████████████████████████████████████████████████████ █████ ██████
173
+ █████ █████████████████████████████████████████████████████████████████████████████████ ███████████████ ██ ██
174
+ █████ ████████████████████████████████████████████████████████████████████████████████████████████████████
175
+ █████ ███████████████████████████████████████████████████████████████████████████████████████████████
176
+ █████ ███████████████████████████████████████████████████████████████████████████████████████████
177
+ ████ ████████████████████████████████████████████████████████████████████████████████████████
178
+ ████ █████████████████████████████████████████████████████████████████████████████████████
179
+ ██ ███████████████████████████████████████████████████████████████████████████████████
180
+ ███ ██████████████████████████████████████████████████████████████████████████████████ █
181
+ ████ ██████████████████████████████████████████████████████████████████████████████ █
182
+ ████ ███████████████████████████████████████████████████████████████████ █ █
183
+ ███ ███████████████████████████████████████████████████████████████████ ██
184
+ ██ ████████████████████████████████████████████████████████████████ █ ██
185
+ ████ █████████████████████████████████████████████████████████████ █ ██
186
+ █████ ████████████████████████████████████████████████████████████ ███
187
+ █████ ████████████████████████████████████████████████████████████████ ████
188
+ █████ ███████████████████████████████████████████████████████████ ██ ████
189
+ ████ ████████████████████████████████████████████████████████████ ████
190
+ ████ █████████████████████████████████████████████████████████████ █████
191
+ ████ ████████████████████████████████████████ ████████████████████ █████
192
+ ████ █████████████████████████████████████████████████████████████ █████
193
+ ████ ███████████████████████████████████ ███ ███████████████ █ █ █████
194
+ ████ ████████████████████████████████ █ ██ █████████████████ █████
195
+ ███ ████████████████████████████ ██ ██ █ ██ ██████████ ███ ████
196
+ ███ █████████████████████████████ █ ██ ██ ███ █████
197
+ ████ ███████████████████████████ ██ █ ██████
198
+ ████ █ ███████████████████ ███ ██ ██████
199
+ ███ █████████████████ ██ ██████
200
+ ███ ███████ ███████████ ███████
201
+ ███ ████ ████ █ ████ ████████
202
+ ████ ████ ███████ ██████
203
+ ████ █ ████████
204
+ ███ ██████████
205
+ ███ ███████████
206
+ ███ █ █████████
207
+ ██████ ██████
208
+ █████ ██████
209
+ █████ █████
210
+ ██████ ████████████████ ████
211
+ ███████ █████████████████████████ ████ █ ██████████
212
+ ███████ ██████████████████████████████ ███ █ ███████████████████████ ███
213
+ ███████ ██████████████████████████████████ ███████ ████████████████ ██████
214
+ ███████ ███████████████████████████████████ ████ ██ ██████████████████ ███████
215
+ ███████ ████████████████████████████████████ █ ██ █████████████████████ ██████
package/index.js CHANGED
@@ -1,3 +1,138 @@
1
- #!/usr/bin/env node
2
-
3
- console.log("Hello, this will be my contact card in the future!");
1
+ #!/usr/bin/env node
2
+
3
+ import fs from "fs";
4
+ import path from "path";
5
+ import { fileURLToPath } from "url";
6
+ import boxen from "boxen";
7
+ import chalk from "chalk";
8
+
9
+ console.clear();
10
+
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
13
+
14
+ // Styles using Zinc color palette
15
+ const styles = {
16
+ nameBold: chalk.bold.hex("#fafafa"),
17
+ textDim: chalk.hex("#a1a1aa"),
18
+ bar: chalk.hex("#71717a"),
19
+ art: chalk.hex("#d4d4d8"),
20
+ dim: chalk.hex("#71717a"),
21
+ error: chalk.hex("#ef4444"),
22
+ link: (url, text) => `\u001b]8;;${url}\u001b\\${chalk.underline.bold.hex("#fafafa")(text)}\u001b]8;;\u001b\\`,
23
+ };
24
+
25
+ function renderFullBraillePortrait(rScale = 2.4, cScale = 4.0, invert = true) {
26
+ const asciiPath = path.join(__dirname, "ascii.txt");
27
+ if (!fs.existsSync(asciiPath)) {
28
+ return [];
29
+ }
30
+
31
+ const rawAscii = fs.readFileSync(asciiPath, "utf8");
32
+ const lines = rawAscii.split(/\r?\n/);
33
+
34
+ if (lines.length === 0) return [];
35
+
36
+ // Bounding box across ALL lines
37
+ let minCol = Infinity, maxCol = 0;
38
+ let firstR = -1, lastR = -1;
39
+
40
+ lines.forEach((l, r) => {
41
+ for (let c = 0; c < l.length; c++) {
42
+ if (l[c] === "█") {
43
+ if (firstR === -1) firstR = r;
44
+ lastR = r;
45
+ if (c < minCol) minCol = c;
46
+ if (c > maxCol) maxCol = c;
47
+ }
48
+ }
49
+ });
50
+
51
+ if (firstR === -1) return [];
52
+
53
+ const tight = lines.slice(firstR, lastR + 1).map((l) => l.slice(minCol, maxCol + 1).padEnd(maxCol - minCol + 1, " "));
54
+ const h = tight.length;
55
+ const w = tight[0].length;
56
+
57
+ const sH = Math.floor(h / rScale);
58
+ const sW = Math.floor(w / cScale);
59
+
60
+ const scaled = [];
61
+ for (let y = 0; y < sH; y++) {
62
+ let row = "";
63
+ for (let x = 0; x < sW; x++) {
64
+ let count = 0, total = 0;
65
+ let insideBounds = false;
66
+ for (let dy = 0; dy < Math.ceil(rScale); dy++) {
67
+ for (let dx = 0; dx < Math.ceil(cScale); dx++) {
68
+ const py = Math.floor(y * rScale + dy);
69
+ const px = Math.floor(x * cScale + dx);
70
+ if (py >= 0 && py < h && px >= 0 && px < w) {
71
+ insideBounds = true;
72
+ total++;
73
+ if (tight[py][px] === "█") count++;
74
+ }
75
+ }
76
+ }
77
+ if (insideBounds && total > 0) {
78
+ const isSolid = (count / total) > 0.3;
79
+ row += (invert ? !isSolid : isSolid) ? "1" : "0";
80
+ } else {
81
+ row += "0";
82
+ }
83
+ }
84
+ scaled.push(row);
85
+ }
86
+
87
+ const brailleLines = [];
88
+ for (let y = 0; y < sH; y += 4) {
89
+ let row = "";
90
+ for (let x = 0; x < sW; x += 2) {
91
+ let code = 0x2800;
92
+ const getBit = (dx, dy) => {
93
+ const py = y + dy, px = x + dx;
94
+ return (py < sH && px < sW && scaled[py][px] === "1") ? 1 : 0;
95
+ };
96
+ if (getBit(0, 0)) code |= 0x01;
97
+ if (getBit(0, 1)) code |= 0x02;
98
+ if (getBit(0, 2)) code |= 0x04;
99
+ if (getBit(1, 0)) code |= 0x08;
100
+ if (getBit(1, 1)) code |= 0x10;
101
+ if (getBit(1, 2)) code |= 0x20;
102
+ if (getBit(0, 3)) code |= 0x40;
103
+ if (getBit(1, 3)) code |= 0x80;
104
+ row += String.fromCharCode(code);
105
+ }
106
+ brailleLines.push(row);
107
+ }
108
+ return brailleLines;
109
+ }
110
+
111
+ const portraitLines = renderFullBraillePortrait(2.4, 4.0, true);
112
+
113
+ // Bio text section with a subtle single gap line to increase line height just a bit
114
+ const textLine1 = styles.bar("│ ") + styles.textDim("this is ") + styles.link("https://parthesh.in", "parthesh purohit.");
115
+ const textLineBlank = styles.bar("│");
116
+ const textLine2 = styles.bar("│ ") + styles.textDim("cs undergrad, full stack dev");
117
+ const textLine3 = styles.bar("│ ") + styles.textDim("and ") + styles.nameBold("a human.");
118
+ const textLines = [textLine1, textLineBlank, textLine2, textLine3];
119
+
120
+ // Combine left (photo) & right (bio text)
121
+ const combined = [];
122
+ const textOffset = Math.floor((portraitLines.length - textLines.length) / 2);
123
+
124
+ for (let i = 0; i < portraitLines.length; i++) {
125
+ const left = styles.art(portraitLines[i]);
126
+ const rightIndex = i - textOffset;
127
+ const right = (rightIndex >= 0 && rightIndex < textLines.length) ? textLines[rightIndex] : "";
128
+ combined.push(`${left} ${right}`);
129
+ }
130
+
131
+ const card = boxen(combined.join("\n"), {
132
+ padding: 1,
133
+ margin: 1,
134
+ borderStyle: "double",
135
+ borderColor: "#a1a1aa", // Brighter zinc border
136
+ });
137
+
138
+ console.log(card);
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "parthesh",
3
- "version": "1.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "My custom NPX card to contact me from the CLI",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "bin": {
7
8
  "parthesh": "./index.js"
8
9
  },
9
10
  "scripts": {
10
- "test": "node ."
11
+ "test": "node index.js"
11
12
  },
12
13
  "author": "Parthesh Purohit <partheshpurohit28@gmail.com>",
13
- "license": "ISC"
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "boxen": "^7.1.1",
17
+ "chalk": "^5.4.1"
18
+ }
14
19
  }