ahmedelgabri 8.0.2 → 8.0.3

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 CHANGED
@@ -13,9 +13,9 @@
13
13
  <br>
14
14
  <br>
15
15
  <strong>Deno</strong>
16
- <pre><code>deno run --allow-env jsr:@ahmed/card</code></pre>
16
+ <pre><code>deno run -r --allow-env jsr:@ahmed/card</code></pre>
17
17
  <br>
18
18
  <br>
19
19
  <strong>node</strong>
20
- <pre><code>npx ahmedelgabri</code></pre>
20
+ <pre><code>npx ahmedelgabri@latest</code></pre>
21
21
  </div>
package/esm/mod.js CHANGED
@@ -4,27 +4,23 @@ import * as c from "./deps/jsr.io/@std/fmt/0.221.0/colors.js";
4
4
  import boxen from "boxen";
5
5
  const fullname = "Ahmed El Gabri";
6
6
  const social = fullname.toLowerCase().replaceAll(" ", "");
7
- const mastodonHandle = fullname.toLowerCase().split(" ").at(-1);
8
7
  const jsrUserName = fullname.toLowerCase().split(" ").at(0);
9
- // Text + pc definitions
8
+ const domain = fullname.toLowerCase().split(" ").at(-1);
10
9
  const handle = c.blue(social);
11
- const work = c.reset("Staff Software Engineer @MiroHQ");
10
+ const work = c.reset(`Staff Software Engineer ${c.yellow("@Mirohq")}`);
12
11
  const twitter = c.blue(`https://twitter.com/${handle}`);
13
12
  const github = c.blue(`https://github.com/${handle}`);
14
13
  const linkedin = c.blue(`https://linkedin.com/in/${handle}`);
15
- const mastodon = c.blue(`https://mastodon.online/@${mastodonHandle}`);
16
- const web = c.blue("https://gabri.me");
17
- const npx = c.reset(`npx ${handle}`);
18
- const deno = c.reset(`deno run --allow-env jsr:@${c.blue(jsrUserName)}/card`);
14
+ const web = c.blue(`https://${domain}.me`);
15
+ const npx = c.reset(`npx ${handle}@latest`);
16
+ const deno = c.reset(`deno run -r --allow-env jsr:@${c.blue(jsrUserName)}/card`);
19
17
  const labelWork = c.gray(" Work: ");
20
- const labelTwitter = c.dim(" Twitter: ");
21
- const labelGitHub = c.dim(" GitHub: ");
22
- const labelLinkedIn = c.dim("LinkedIn: ");
23
- const labelWeb = c.dim(" Web: ");
24
- const labelNode = c.gray(" Node: ");
25
- const labelDeno = c.gray(" Deno: ");
26
- const labelMastodon = c.dim("Mastodon: ");
27
- // Actual strings we're going to output
18
+ const labelTwitter = c.dim(" Twitter/X: ");
19
+ const labelGitHub = c.dim(" GitHub: ");
20
+ const labelLinkedIn = c.dim(" LinkedIn: ");
21
+ const labelWeb = c.dim(" Web: ");
22
+ const labelNode = c.gray(" Node: ");
23
+ const labelDeno = c.gray(" Deno: ");
28
24
  const working = `${labelWork} ${work}`;
29
25
  const twittering = `${labelTwitter} ${twitter}`;
30
26
  const githubing = `${labelGitHub} ${github}`;
@@ -32,18 +28,7 @@ const linkedining = `${labelLinkedIn} ${linkedin}`;
32
28
  const webing = `${labelWeb} ${web}`;
33
29
  const npming = `${labelNode} ${npx}`;
34
30
  const denoing = `${labelDeno} ${deno}`;
35
- const mastodoning = `${labelMastodon} ${mastodon}`;
36
- // Put all our output together into a single variable so we can use boxen effectively
37
- const output = `${working}
38
-
39
- ${githubing}
40
- ${linkedining}
41
- ${twittering}
42
- ${mastodoning}
43
- ${webing}
44
-
45
- ${denoing}
46
- ${npming}`;
31
+ const output = `${working}\n\n${githubing}\n${linkedining}\n${twittering}\n${webing}\n\n${denoing}\n${npming}`;
47
32
  /**
48
33
  * Returns a boxed and colored personal card containing personal information
49
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahmedelgabri",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "A personal card for Ahmed El Gabri (@ahmedelgabri)",
5
5
  "keywords": [
6
6
  "card",
package/script/mod.js CHANGED
@@ -33,27 +33,23 @@ const c = __importStar(require("./deps/jsr.io/@std/fmt/0.221.0/colors.js"));
33
33
  const boxen_1 = __importDefault(require("boxen"));
34
34
  const fullname = "Ahmed El Gabri";
35
35
  const social = fullname.toLowerCase().replaceAll(" ", "");
36
- const mastodonHandle = fullname.toLowerCase().split(" ").at(-1);
37
36
  const jsrUserName = fullname.toLowerCase().split(" ").at(0);
38
- // Text + pc definitions
37
+ const domain = fullname.toLowerCase().split(" ").at(-1);
39
38
  const handle = c.blue(social);
40
- const work = c.reset("Staff Software Engineer @MiroHQ");
39
+ const work = c.reset(`Staff Software Engineer ${c.yellow("@Mirohq")}`);
41
40
  const twitter = c.blue(`https://twitter.com/${handle}`);
42
41
  const github = c.blue(`https://github.com/${handle}`);
43
42
  const linkedin = c.blue(`https://linkedin.com/in/${handle}`);
44
- const mastodon = c.blue(`https://mastodon.online/@${mastodonHandle}`);
45
- const web = c.blue("https://gabri.me");
46
- const npx = c.reset(`npx ${handle}`);
47
- const deno = c.reset(`deno run --allow-env jsr:@${c.blue(jsrUserName)}/card`);
43
+ const web = c.blue(`https://${domain}.me`);
44
+ const npx = c.reset(`npx ${handle}@latest`);
45
+ const deno = c.reset(`deno run -r --allow-env jsr:@${c.blue(jsrUserName)}/card`);
48
46
  const labelWork = c.gray(" Work: ");
49
- const labelTwitter = c.dim(" Twitter: ");
50
- const labelGitHub = c.dim(" GitHub: ");
51
- const labelLinkedIn = c.dim("LinkedIn: ");
52
- const labelWeb = c.dim(" Web: ");
53
- const labelNode = c.gray(" Node: ");
54
- const labelDeno = c.gray(" Deno: ");
55
- const labelMastodon = c.dim("Mastodon: ");
56
- // Actual strings we're going to output
47
+ const labelTwitter = c.dim(" Twitter/X: ");
48
+ const labelGitHub = c.dim(" GitHub: ");
49
+ const labelLinkedIn = c.dim(" LinkedIn: ");
50
+ const labelWeb = c.dim(" Web: ");
51
+ const labelNode = c.gray(" Node: ");
52
+ const labelDeno = c.gray(" Deno: ");
57
53
  const working = `${labelWork} ${work}`;
58
54
  const twittering = `${labelTwitter} ${twitter}`;
59
55
  const githubing = `${labelGitHub} ${github}`;
@@ -61,18 +57,7 @@ const linkedining = `${labelLinkedIn} ${linkedin}`;
61
57
  const webing = `${labelWeb} ${web}`;
62
58
  const npming = `${labelNode} ${npx}`;
63
59
  const denoing = `${labelDeno} ${deno}`;
64
- const mastodoning = `${labelMastodon} ${mastodon}`;
65
- // Put all our output together into a single variable so we can use boxen effectively
66
- const output = `${working}
67
-
68
- ${githubing}
69
- ${linkedining}
70
- ${twittering}
71
- ${mastodoning}
72
- ${webing}
73
-
74
- ${denoing}
75
- ${npming}`;
60
+ const output = `${working}\n\n${githubing}\n${linkedining}\n${twittering}\n${webing}\n\n${denoing}\n${npming}`;
76
61
  /**
77
62
  * Returns a boxed and colored personal card containing personal information
78
63
  *
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAqD7B;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAuC7B;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC"}