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.
Files changed (2) hide show
  1. package/bin/card.js +49 -28
  2. 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: chalk.white.bold( " DAVID NEAL" ),
25
- handle: chalk.cyan( "reverentgeek" ),
26
- work: chalk.white( "Principal Developer Advocate" ),
27
- workUrl: chalk.cyan( "https://pluralsight.com" ),
28
- twitter: chalk.cyan( "https://twitter.com/reverentgeek" ),
29
- mastodon: chalk.cyan( "https://techhub.social/@reverentgeek" ),
30
- github: chalk.cyan( "https://github.com/reverentgeek" ),
31
- linkedin: chalk.cyan( "https://linkedin.com/in/davidneal" ),
32
- web: chalk.cyan( "https://reverentgeek.com" ),
33
- email: chalk.cyan( "david@reverentgeek.com" ),
34
- npx: chalk.white( "npx reverentgeek" ),
35
- labelWork: chalk.white.bold( " Work:" ),
36
- labelWorkUrl: chalk.white.bold( " " ),
37
- labelTwitter: chalk.white.bold( " Twitter:" ),
38
- labelMastodon: chalk.white.bold( " Mastodon:" ),
39
- labelGitHub: chalk.white.bold( " GitHub:" ),
40
- labelLinkedIn: chalk.white.bold( " LinkedIn:" ),
41
- labelWeb: chalk.white.bold( " Web:" ),
42
- labelCard: chalk.white.bold( " Card:" ),
43
- labelEmail: chalk.white.bold( " Email:" ),
44
- bio: chalk.yellow( `I am a family man, geek, musician, illustrator,
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
- Im entirely made of bacon.` ),
49
- msg: chalk.white( `If there's anything I can help you with,
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 = chalk.yellow( "----------~~~~~~~~~==========~~~~~~~~~-----------" );
56
- const heading = `${ data.name }`;
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( chalk.green( boxen( output, options ) ) ); // eslint-disable-line no-console
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.4.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
+ }