reverentgeek 1.4.1 → 1.5.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/bin/card.js +49 -28
- package/package.json +4 -3
package/bin/card.js
CHANGED
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
// Pull in our modules
|
|
6
6
|
const chalk = require( "chalk" );
|
|
7
7
|
const boxen = require( "boxen" );
|
|
8
|
+
const gs = require( "gradient-string" );
|
|
9
|
+
|
|
10
|
+
// define custom colors
|
|
11
|
+
const pink = "#ff1675";
|
|
12
|
+
const orange = "#ff7b01";
|
|
13
|
+
const inkyBlue = "#130f25";
|
|
14
|
+
const yellow = "#ffc942";
|
|
15
|
+
const blue = "#00A3FF";
|
|
16
|
+
const green = "#02e088";
|
|
17
|
+
const lightBlue = "#99DAFF";
|
|
18
|
+
|
|
19
|
+
// set up chalk and gradients
|
|
20
|
+
const yellowChalk = chalk.hex( yellow );
|
|
21
|
+
const lbChalk = chalk.hex( lightBlue );
|
|
22
|
+
const blueChalk = chalk.hex( blue );
|
|
23
|
+
const greenChalk = chalk.hex( green );
|
|
24
|
+
const orangeChalk = chalk.hex( orange );
|
|
25
|
+
// const pinkChalk = chalk.hex( pink );
|
|
26
|
+
const ps = gs( pink, orange );
|
|
8
27
|
|
|
9
28
|
// Some sweet ascii art
|
|
10
29
|
const avatar = require( "../art/avatar" );
|
|
@@ -16,44 +35,46 @@ const newline = "\n";
|
|
|
16
35
|
const options = {
|
|
17
36
|
padding: 1,
|
|
18
37
|
margin: 1,
|
|
19
|
-
borderStyle: "round"
|
|
38
|
+
borderStyle: "round",
|
|
39
|
+
borderColor: pink,
|
|
40
|
+
backgroundColor: inkyBlue
|
|
20
41
|
};
|
|
21
42
|
|
|
22
43
|
// Text + chalk definitions
|
|
23
44
|
const data = {
|
|
24
|
-
name:
|
|
25
|
-
handle:
|
|
26
|
-
work:
|
|
27
|
-
workUrl:
|
|
28
|
-
twitter:
|
|
29
|
-
mastodon:
|
|
30
|
-
github:
|
|
31
|
-
linkedin:
|
|
32
|
-
web:
|
|
33
|
-
email:
|
|
34
|
-
npx:
|
|
35
|
-
labelWork:
|
|
36
|
-
labelWorkUrl:
|
|
37
|
-
labelTwitter:
|
|
38
|
-
labelMastodon:
|
|
39
|
-
labelGitHub:
|
|
40
|
-
labelLinkedIn:
|
|
41
|
-
labelWeb:
|
|
42
|
-
labelCard:
|
|
43
|
-
labelEmail:
|
|
44
|
-
bio:
|
|
45
|
+
name: yellowChalk.bold( " DAVID NEAL" ),
|
|
46
|
+
handle: yellowChalk( "reverentgeek" ),
|
|
47
|
+
work: ps( "Principal Developer Advocate" ),
|
|
48
|
+
workUrl: ps( "https://pluralsight.com" ),
|
|
49
|
+
twitter: yellowChalk( "https://twitter.com/reverentgeek" ),
|
|
50
|
+
mastodon: yellowChalk( "@reverentgeek@reverentgeek.com" ),
|
|
51
|
+
github: yellowChalk( "https://github.com/reverentgeek" ),
|
|
52
|
+
linkedin: yellowChalk( "https://linkedin.com/in/davidneal" ),
|
|
53
|
+
web: yellowChalk( "https://reverentgeek.com" ),
|
|
54
|
+
email: yellowChalk( "david@reverentgeek.com" ),
|
|
55
|
+
npx: orangeChalk( "npx reverentgeek" ),
|
|
56
|
+
labelWork: blueChalk( " Work:" ),
|
|
57
|
+
labelWorkUrl: blueChalk( " " ),
|
|
58
|
+
labelTwitter: blueChalk( " Twitter:" ),
|
|
59
|
+
labelMastodon: blueChalk( " Mastodon:" ),
|
|
60
|
+
labelGitHub: blueChalk( " GitHub:" ),
|
|
61
|
+
labelLinkedIn: blueChalk( " LinkedIn:" ),
|
|
62
|
+
labelWeb: blueChalk( " Web:" ),
|
|
63
|
+
labelCard: blueChalk( " Card:" ),
|
|
64
|
+
labelEmail: blueChalk( " Email:" ),
|
|
65
|
+
bio: lbChalk( `I am a family man, geek, musician, illustrator,
|
|
45
66
|
speaker, software developer, and Microsoft MVP
|
|
46
67
|
living in North GA. I run on a high-octane
|
|
47
68
|
mixture of caffeine and JavaScript, and
|
|
48
|
-
I
|
|
49
|
-
msg:
|
|
69
|
+
I'm entirely made of bacon.` ),
|
|
70
|
+
msg: greenChalk( `If there's anything I can help you with,
|
|
50
71
|
reach out anytime! You can reach me by email and
|
|
51
72
|
my Twitter direct messages are open!` )
|
|
52
73
|
};
|
|
53
74
|
|
|
54
75
|
// Actual strings we're going to output
|
|
55
|
-
const hr =
|
|
56
|
-
const heading =
|
|
76
|
+
const hr = ps( "----------~~~~~~~~~==========~~~~~~~~~-----------" );
|
|
77
|
+
const heading = data.name;
|
|
57
78
|
const working = `\n${ data.labelWork } ${ data.work }`;
|
|
58
79
|
const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
|
|
59
80
|
const twittering = `${ data.labelTwitter } ${ data.twitter }`;
|
|
@@ -67,7 +88,7 @@ const bio = `\n${ data.bio }`;
|
|
|
67
88
|
const msg = `\n${ data.msg }`;
|
|
68
89
|
|
|
69
90
|
const card = [
|
|
70
|
-
avatar, banner,
|
|
91
|
+
ps.multiline( avatar ), ps.multiline( banner ),
|
|
71
92
|
hr, heading, hr, working, workingUrl,
|
|
72
93
|
twittering, tooting, githubing, linkedining,
|
|
73
94
|
webing, emailing, carding, bio, msg
|
|
@@ -76,4 +97,4 @@ const card = [
|
|
|
76
97
|
// Put all our output together into a single variable so we can use boxen effectively
|
|
77
98
|
const output = card.join( newline );
|
|
78
99
|
|
|
79
|
-
console.log(
|
|
100
|
+
console.log( boxen( output, options ) ); // eslint-disable-line no-console
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reverentgeek",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "My personal calling card.",
|
|
5
5
|
"main": "./bin/card.js",
|
|
6
6
|
"bin": {
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"boxen": "^5.0.1",
|
|
25
|
-
"chalk": "^4.1.0"
|
|
25
|
+
"chalk": "^4.1.0",
|
|
26
|
+
"gradient-string": "^2.0.2"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"eslint": "^7.5.0",
|
|
29
30
|
"eslint-config-reverentgeek": "^3.0.0"
|
|
30
31
|
}
|
|
31
|
-
}
|
|
32
|
+
}
|