reverentgeek 2.1.2 → 2.2.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/card.js +33 -38
- package/eslint.config.js +2 -8
- package/package.json +4 -4
package/bin/card.js
CHANGED
|
@@ -11,22 +11,23 @@ import avatar from "../art/avatar.js";
|
|
|
11
11
|
import banner from "../art/banner.js";
|
|
12
12
|
|
|
13
13
|
// define custom colors
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
const colors = {
|
|
15
|
+
blue: "#00A3FF",
|
|
16
|
+
blueSky: "#51D2FB",
|
|
17
|
+
mintGreen: "#42F0CD",
|
|
18
|
+
inkyBlue: "#130f25",
|
|
19
|
+
lightBlue: "#99DAFF",
|
|
20
|
+
orange: "#ff7b01",
|
|
21
|
+
pink: "#ff1675",
|
|
22
|
+
yellow: "#ffc942"
|
|
23
|
+
};
|
|
21
24
|
|
|
22
25
|
// set up chalk and gradients
|
|
23
|
-
const yellowChalk = chalk.hex( yellow );
|
|
24
|
-
const lbChalk = chalk.hex( lightBlue
|
|
25
|
-
const blueChalk = chalk.hex( blue );
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
// const pinkChalk = chalk.hex( pink );
|
|
29
|
-
const ps = gs( [ pink, orange ] );
|
|
26
|
+
const yellowChalk = chalk.hex( colors.yellow );
|
|
27
|
+
const lbChalk = chalk.hex( colors.lightBlue );
|
|
28
|
+
const blueChalk = chalk.hex( colors.blue );
|
|
29
|
+
const orangeChalk = chalk.hex( colors.orange );
|
|
30
|
+
const gradient = gs( [ colors.mintGreen, colors.blueSky ] );
|
|
30
31
|
|
|
31
32
|
const newline = "\n";
|
|
32
33
|
|
|
@@ -35,16 +36,16 @@ const options = {
|
|
|
35
36
|
padding: 1,
|
|
36
37
|
margin: 1,
|
|
37
38
|
borderStyle: "round",
|
|
38
|
-
borderColor:
|
|
39
|
-
backgroundColor: inkyBlue
|
|
39
|
+
borderColor: colors.blueSky,
|
|
40
|
+
backgroundColor: colors.inkyBlue
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
// Text + chalk definitions
|
|
43
44
|
const data = {
|
|
44
45
|
name: yellowChalk.bold( " DAVID NEAL" ),
|
|
45
46
|
handle: yellowChalk( "reverentgeek" ),
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
work: gradient( "Developer Relations Engineer" ),
|
|
48
|
+
workUrl: gradient( " https://plaid.com" ),
|
|
48
49
|
twitter: yellowChalk( "https://x.com/reverentgeek" ),
|
|
49
50
|
instagram: yellowChalk( "https://instagram.com/reverentgeek" ),
|
|
50
51
|
mastodon: yellowChalk( "@reverentgeek@reverentgeek.com" ),
|
|
@@ -55,7 +56,7 @@ const data = {
|
|
|
55
56
|
web: yellowChalk( "https://reverentgeek.com" ),
|
|
56
57
|
email: yellowChalk( "david@reverentgeek.com" ),
|
|
57
58
|
npx: orangeChalk( "npx reverentgeek" ),
|
|
58
|
-
labelWork: blueChalk( "
|
|
59
|
+
labelWork: blueChalk( " Work:" ),
|
|
59
60
|
labelWorkUrl: blueChalk( " " ),
|
|
60
61
|
labelTwitter: blueChalk( " X:" ),
|
|
61
62
|
labelInstagram: blueChalk( " Instagram:" ),
|
|
@@ -67,20 +68,20 @@ const data = {
|
|
|
67
68
|
labelWeb: blueChalk( " Web:" ),
|
|
68
69
|
labelCard: blueChalk( " Card:" ),
|
|
69
70
|
labelEmail: blueChalk( " Email:" ),
|
|
70
|
-
bio: lbChalk( `
|
|
71
|
+
bio: lbChalk( `David is a family man, geek, musician, illustrator,
|
|
71
72
|
speaker, software developer, and Microsoft MVP
|
|
72
|
-
living in North GA.
|
|
73
|
+
living in North GA. He runs on a high-octane
|
|
73
74
|
mixture of caffeine and JavaScript, and
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
reach out anytime!` )
|
|
75
|
+
is entirely made of bacon.` )
|
|
76
|
+
// msg: greenChalk( `If there's anything I can help you with,
|
|
77
|
+
// reach out anytime!` )
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
// Actual strings we're going to output
|
|
80
|
-
const hr =
|
|
81
|
+
const hr = gradient( "----------~~~~~~~~~==========~~~~~~~~~-----------" );
|
|
81
82
|
const heading = data.name;
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
const working = `\n${ data.labelWork } ${ data.work }`;
|
|
84
|
+
const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
|
|
84
85
|
const twittering = `${ data.labelTwitter } ${ data.twitter }`;
|
|
85
86
|
const instagramming = `${ data.labelInstagram } ${ data.instagram }`;
|
|
86
87
|
const tooting = `${ data.labelMastodon } ${ data.mastodon }`;
|
|
@@ -92,26 +93,20 @@ const webing = `${ data.labelWeb } ${ data.web }`;
|
|
|
92
93
|
const emailing = `${ data.labelEmail } ${ data.email }`;
|
|
93
94
|
const carding = `\n${ data.labelCard } ${ data.npx }`;
|
|
94
95
|
const bio = `\n${ data.bio }`;
|
|
95
|
-
const msg = `\n${ data.msg }`;
|
|
96
|
-
|
|
97
|
-
// const card = [
|
|
98
|
-
// ps.multiline( avatar ), ps.multiline( banner ),
|
|
99
|
-
// hr, heading, hr, working, workingUrl,
|
|
100
|
-
// twittering, tooting, skeeting, threading,
|
|
101
|
-
// githubing, linkedining,
|
|
102
|
-
// webing, emailing, carding, bio, msg
|
|
103
|
-
// ];
|
|
96
|
+
// const msg = `\n${ data.msg }`;
|
|
104
97
|
|
|
105
98
|
const card = [
|
|
106
|
-
|
|
99
|
+
gradient.multiline( avatar ), gradient.multiline( banner ),
|
|
107
100
|
hr, heading, hr,
|
|
101
|
+
working, workingUrl,
|
|
108
102
|
webing, emailing,
|
|
109
103
|
linkedining,
|
|
110
104
|
githubing,
|
|
111
105
|
instagramming,
|
|
112
106
|
tooting, skeeting, threading,
|
|
113
107
|
twittering,
|
|
114
|
-
carding, bio
|
|
108
|
+
carding, bio
|
|
109
|
+
// , msg
|
|
115
110
|
];
|
|
116
111
|
|
|
117
112
|
// Put all our output together into a single variable so we can use boxen effectively
|
package/eslint.config.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
+
/* eslint-disable-next-line n/no-unpublished-import */
|
|
1
2
|
import rg from "eslint-config-reverentgeek";
|
|
2
3
|
|
|
3
4
|
export default [
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
rules: {
|
|
7
|
-
"n/no-unpublished-import": [ "error", {
|
|
8
|
-
allowModules: [ "eslint-config-reverentgeek" ]
|
|
9
|
-
} ]
|
|
10
|
-
}
|
|
11
|
-
}
|
|
5
|
+
rg.configs["node-esm"]
|
|
12
6
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reverentgeek",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "My personal calling card.",
|
|
5
5
|
"main": "./bin/card.js",
|
|
6
6
|
"bin": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"boxen": "^8.0.1",
|
|
26
|
-
"chalk": "^5.
|
|
26
|
+
"chalk": "^5.6.2",
|
|
27
27
|
"gradient-string": "^3.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"eslint": "^9.
|
|
31
|
-
"eslint-config-reverentgeek": "^
|
|
30
|
+
"eslint": "^9.35.0",
|
|
31
|
+
"eslint-config-reverentgeek": "^6.0.2"
|
|
32
32
|
}
|
|
33
33
|
}
|