ahmedelgabri 7.0.1 → 8.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.
package/index.mjs DELETED
@@ -1,63 +0,0 @@
1
- import pc from 'picocolors'
2
- import boxen from 'boxen'
3
-
4
- const fullname = 'Ahmed El Gabri'
5
- const social = fullname.toLowerCase().replaceAll(' ', '')
6
- const mastodonHandle = fullname.toLowerCase().split(' ').at(-1)
7
-
8
- // Define options for Boxen
9
- const options = {
10
- title: fullname,
11
- titleAlignment: 'center',
12
- padding: 1,
13
- margin: 1,
14
- borderStyle: 'bold',
15
- }
16
-
17
- // Text + pc definitions
18
- const handle = pc.blue(social)
19
- const work = pc.reset('Staff Software Engineer @MiroHQ')
20
- const twitter = pc.blue(`https://twitter.com/${handle}`)
21
- const github = pc.blue(`https://github.com/${handle}`)
22
- const linkedin = pc.blue(`https://linkedin.com/in/${handle}`)
23
- const mastodon = pc.blue(`https://mastodon.online/@${mastodonHandle}`)
24
- const web = pc.blue('https://gabri.me')
25
- const npx = pc.reset(`npx ${handle}`)
26
- const labelWork = pc.gray(' Work: ')
27
- const labelTwitter = pc.dim(' Twitter: ')
28
- const labelGitHub = pc.dim(' GitHub: ')
29
- const labelLinkedIn = pc.dim('LinkedIn: ')
30
- const labelWeb = pc.dim(' Web: ')
31
- const labelCard = pc.gray(' Card: ')
32
- const labelMastodon = pc.dim('Mastodon: ')
33
-
34
- // Actual strings we're going to output
35
- const working = `${labelWork} ${work}`
36
- const twittering = `${labelTwitter} ${twitter}`
37
- const githubing = `${labelGitHub} ${github}`
38
- const linkedining = `${labelLinkedIn} ${linkedin}`
39
- const webing = `${labelWeb} ${web}`
40
- const carding = `${labelCard} ${npx}`
41
- const mastodoning = `${labelMastodon} ${mastodon}`
42
-
43
- // Put all our output together into a single variable so we can use boxen effectively
44
- const output = `${working}
45
-
46
- ${githubing}
47
- ${linkedining}
48
- ${twittering}
49
- ${mastodoning}
50
- ${webing}
51
-
52
- ${carding}`
53
-
54
- export function getCard() {
55
- return boxen(output, {
56
- ...options,
57
- borderColor: process.env.NO_COLOR ? undefined : 'blue',
58
- })
59
- }
60
-
61
- export function getPlainCard() {
62
- return output
63
- }