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.
Files changed (3) hide show
  1. package/bin/output +15 -15
  2. package/index.js +17 -17
  3. package/package.json +5 -3
package/bin/output CHANGED
@@ -1,15 +1,15 @@
1
- 
2
-  ╭─────────────────────────────────────────────────────────╮
3
- │
4
-  │ Ahmed El Gabri / ahmedelgabri │
5
- │
6
-  │  Work:  Staff Software Engineer @MiroHQ │
7
-  │  Twitter:  https://twitter.com/ahmedelgabri │
8
-  │  GitHub:  https://github.com/ahmedelgabri │
9
-  │  LinkedIn:  https://linkedin.com/in/ahmedelgabri │
10
-  │  Web:  https://gabri.me │
11
- │
12
-  │  Card:  npx ahmedelgabri │
13
- │
14
-  ╰─────────────────────────────────────────────────────────╯
15
- 
1
+ 
2
+ ╭─────────────────────────────────────────────────────────╮
3
+
4
+ │ Ahmed El Gabri / ahmedelgabri
5
+
6
+ │  Work:  Staff Software Engineer @MiroHQ
7
+ │  Twitter:  https://twitter.com/ahmedelgabri
8
+ │  GitHub:  https://github.com/ahmedelgabri
9
+ │  LinkedIn:  https://linkedin.com/in/ahmedelgabri
10
+ │  Web:  https://gabri.me
11
+
12
+ │  Card:  npx ahmedelgabri
13
+
14
+ ╰─────────────────────────────────────────────────────────╯
15
+ 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const chalk = require('chalk')
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 + chalk definitions
12
- const name = chalk.reset('Ahmed El Gabri')
13
- const handle = chalk.cyan('ahmedelgabri')
14
- const work = chalk.reset('Staff Software Engineer @MiroHQ')
15
- const twitter = chalk.cyan(`https://twitter.com/${handle}`)
16
- const github = chalk.cyan(`https://github.com/${handle}`)
17
- const linkedin = chalk.cyan(`https://linkedin.com/in/${handle}`)
18
- const web = chalk.cyan('https://gabri.me')
19
- const npx = chalk.reset(`npx ${handle}`)
20
- const labelWork = chalk.reset.bold(' Work: ')
21
- const labelTwitter = chalk.reset.bold(' Twitter: ')
22
- const labelGitHub = chalk.reset.bold(' GitHub: ')
23
- const labelLinkedIn = chalk.reset.bold(' LinkedIn: ')
24
- const labelWeb = chalk.reset.bold(' Web: ')
25
- const labelCard = chalk.reset.bold(' Card: ')
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: () => chalk.green(boxen(output, options)),
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": "5.0.2",
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
  }