ahmedelgabri 5.0.2 → 6.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/bin/output +15 -15
- package/index.js +17 -17
- package/package.json +5 -3
package/bin/output
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
[32m
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
[
|
|
1
|
+
[32m
|
|
2
|
+
╭─────────────────────────────────────────────────────────╮
|
|
3
|
+
│ │
|
|
4
|
+
│ [0mAhmed El Gabri[0m / [36mahmedelgabri[32m │
|
|
5
|
+
│ │
|
|
6
|
+
│ [1m[0m Work: [0m[22m [0mStaff Software Engineer @MiroHQ[0m │
|
|
7
|
+
│ [1m[0m Twitter: [0m[22m [36mhttps://twitter.com/[36mahmedelgabri[36m[32m │
|
|
8
|
+
│ [1m[0m GitHub: [0m[22m [36mhttps://github.com/[36mahmedelgabri[36m[32m │
|
|
9
|
+
│ [1m[0m LinkedIn: [0m[22m [36mhttps://linkedin.com/in/[36mahmedelgabri[36m[32m │
|
|
10
|
+
│ [1m[0m Web: [0m[22m [36mhttps://gabri.me[32m │
|
|
11
|
+
│ │
|
|
12
|
+
│ [1m[0m Card: [0m[22m [0mnpx [36mahmedelgabri[32m[0m │
|
|
13
|
+
│ │
|
|
14
|
+
╰─────────────────────────────────────────────────────────╯
|
|
15
|
+
[39m
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const pc = require('picocolors')
|
|
2
2
|
const boxen = require('boxen')
|
|
3
3
|
|
|
4
4
|
// Define options for Boxen
|
|
@@ -8,21 +8,21 @@ const options = {
|
|
|
8
8
|
borderStyle: 'round',
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
// Text +
|
|
12
|
-
const name =
|
|
13
|
-
const handle =
|
|
14
|
-
const work =
|
|
15
|
-
const twitter =
|
|
16
|
-
const github =
|
|
17
|
-
const linkedin =
|
|
18
|
-
const web =
|
|
19
|
-
const npx =
|
|
20
|
-
const labelWork =
|
|
21
|
-
const labelTwitter =
|
|
22
|
-
const labelGitHub =
|
|
23
|
-
const labelLinkedIn =
|
|
24
|
-
const labelWeb =
|
|
25
|
-
const labelCard =
|
|
11
|
+
// Text + pc definitions
|
|
12
|
+
const name = pc.reset('Ahmed El Gabri')
|
|
13
|
+
const handle = pc.cyan('ahmedelgabri')
|
|
14
|
+
const work = pc.reset('Staff Software Engineer @MiroHQ')
|
|
15
|
+
const twitter = pc.cyan(`https://twitter.com/${handle}`)
|
|
16
|
+
const github = pc.cyan(`https://github.com/${handle}`)
|
|
17
|
+
const linkedin = pc.cyan(`https://linkedin.com/in/${handle}`)
|
|
18
|
+
const web = pc.cyan('https://gabri.me')
|
|
19
|
+
const npx = pc.reset(`npx ${handle}`)
|
|
20
|
+
const labelWork = pc.bold(pc.reset(' Work: '))
|
|
21
|
+
const labelTwitter = pc.bold(pc.reset(' Twitter: '))
|
|
22
|
+
const labelGitHub = pc.bold(pc.reset(' GitHub: '))
|
|
23
|
+
const labelLinkedIn = pc.bold(pc.reset(' LinkedIn: '))
|
|
24
|
+
const labelWeb = pc.bold(pc.reset(' Web: '))
|
|
25
|
+
const labelCard = pc.bold(pc.reset(' Card: '))
|
|
26
26
|
|
|
27
27
|
// Actual strings we're going to output
|
|
28
28
|
const heading = `${name} / ${handle}`
|
|
@@ -45,6 +45,6 @@ const output = `${heading}
|
|
|
45
45
|
${carding}`
|
|
46
46
|
|
|
47
47
|
module.exports = {
|
|
48
|
-
getCard: () =>
|
|
48
|
+
getCard: () => pc.green(boxen(output, options)),
|
|
49
49
|
getPlainCard: () => output,
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ahmedelgabri",
|
|
3
3
|
"author": "Ahmed El Gabri <ahmed@gabri.me> (https://gabri.me)",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"description": "A personal card for Ahmed El Gabri (@ahmedelgabri)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://gabri.me",
|
|
@@ -37,9 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@ahmedelgabri/prettier-config": "^5.0.0",
|
|
40
|
-
"boxen": "^5.1.2",
|
|
41
|
-
"chalk": "^4.1.2",
|
|
42
40
|
"prettier": "^2.5.0",
|
|
43
41
|
"standard": "^16.0.4"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"picocolors": "^1.0.0",
|
|
45
|
+
"boxen": "^5.1.2"
|
|
44
46
|
}
|
|
45
47
|
}
|