reverentgeek 1.5.1 → 2.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/art/avatar.js +1 -1
- package/art/banner.js +1 -1
- package/bin/card.js +30 -16
- package/eslint.config.js +12 -0
- package/package.json +7 -6
- package/.eslintrc.js +0 -5
package/art/avatar.js
CHANGED
package/art/banner.js
CHANGED
package/bin/card.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
2
|
// 👆 Used to tell Node.js that this is a CLI tool
|
|
4
3
|
|
|
5
4
|
// Pull in our modules
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import chalk from "chalk";
|
|
6
|
+
import boxen from "boxen";
|
|
7
|
+
import gs from "gradient-string";
|
|
8
|
+
|
|
9
|
+
// Some sweet ascii art
|
|
10
|
+
import avatar from "../art/avatar.js";
|
|
11
|
+
import banner from "../art/banner.js";
|
|
9
12
|
|
|
10
13
|
// define custom colors
|
|
11
14
|
const pink = "#ff1675";
|
|
@@ -23,11 +26,7 @@ const blueChalk = chalk.hex( blue );
|
|
|
23
26
|
const greenChalk = chalk.hex( green );
|
|
24
27
|
const orangeChalk = chalk.hex( orange );
|
|
25
28
|
// const pinkChalk = chalk.hex( pink );
|
|
26
|
-
const ps = gs( pink, orange );
|
|
27
|
-
|
|
28
|
-
// Some sweet ascii art
|
|
29
|
-
const avatar = require( "../art/avatar" );
|
|
30
|
-
const banner = require( "../art/banner" );
|
|
29
|
+
const ps = gs( [ pink, orange ] );
|
|
31
30
|
|
|
32
31
|
const newline = "\n";
|
|
33
32
|
|
|
@@ -44,10 +43,12 @@ const options = {
|
|
|
44
43
|
const data = {
|
|
45
44
|
name: yellowChalk.bold( " DAVID NEAL" ),
|
|
46
45
|
handle: yellowChalk( "reverentgeek" ),
|
|
47
|
-
work: ps( "Principal Developer Advocate" ),
|
|
48
|
-
workUrl: ps( "https://pluralsight.com" ),
|
|
46
|
+
// work: ps( "Principal Developer Advocate" ),
|
|
47
|
+
// workUrl: ps( "https://pluralsight.com" ),
|
|
49
48
|
twitter: yellowChalk( "https://twitter.com/reverentgeek" ),
|
|
50
49
|
mastodon: yellowChalk( "@reverentgeek@reverentgeek.com" ),
|
|
50
|
+
bluesky: yellowChalk( "@reverentgeek.com" ),
|
|
51
|
+
threads: yellowChalk( "@reverentgeek" ),
|
|
51
52
|
github: yellowChalk( "https://github.com/reverentgeek" ),
|
|
52
53
|
linkedin: yellowChalk( "https://linkedin.com/in/davidneal" ),
|
|
53
54
|
web: yellowChalk( "https://reverentgeek.com" ),
|
|
@@ -57,6 +58,8 @@ const data = {
|
|
|
57
58
|
labelWorkUrl: blueChalk( " " ),
|
|
58
59
|
labelTwitter: blueChalk( " Twitter:" ),
|
|
59
60
|
labelMastodon: blueChalk( " Mastodon:" ),
|
|
61
|
+
labelBluesky: blueChalk( " BlueSky:" ),
|
|
62
|
+
labelThreads: blueChalk( " Threads:" ),
|
|
60
63
|
labelGitHub: blueChalk( " GitHub:" ),
|
|
61
64
|
labelLinkedIn: blueChalk( " LinkedIn:" ),
|
|
62
65
|
labelWeb: blueChalk( " Web:" ),
|
|
@@ -75,10 +78,12 @@ my Twitter direct messages are open!` )
|
|
|
75
78
|
// Actual strings we're going to output
|
|
76
79
|
const hr = ps( "----------~~~~~~~~~==========~~~~~~~~~-----------" );
|
|
77
80
|
const heading = data.name;
|
|
78
|
-
const working = `\n${ data.labelWork } ${ data.work }`;
|
|
79
|
-
const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
|
|
81
|
+
// const working = `\n${ data.labelWork } ${ data.work }`;
|
|
82
|
+
// const workingUrl = `${ data.labelWorkUrl } ${ data.workUrl }`;
|
|
80
83
|
const twittering = `${ data.labelTwitter } ${ data.twitter }`;
|
|
81
84
|
const tooting = `${ data.labelMastodon } ${ data.mastodon }`;
|
|
85
|
+
const skeeting = `${ data.labelBluesky } ${ data.bluesky }`;
|
|
86
|
+
const threading = `${ data.labelThreads } ${ data.threads }`;
|
|
82
87
|
const githubing = `${ data.labelGitHub } ${ data.github }`;
|
|
83
88
|
const linkedining = `${ data.labelLinkedIn } ${ data.linkedin }`;
|
|
84
89
|
const webing = `${ data.labelWeb } ${ data.web }`;
|
|
@@ -87,14 +92,23 @@ const carding = `\n${ data.labelCard } ${ data.npx }`;
|
|
|
87
92
|
const bio = `\n${ data.bio }`;
|
|
88
93
|
const msg = `\n${ data.msg }`;
|
|
89
94
|
|
|
95
|
+
// const card = [
|
|
96
|
+
// ps.multiline( avatar ), ps.multiline( banner ),
|
|
97
|
+
// hr, heading, hr, working, workingUrl,
|
|
98
|
+
// twittering, tooting, skeeting, threading,
|
|
99
|
+
// githubing, linkedining,
|
|
100
|
+
// webing, emailing, carding, bio, msg
|
|
101
|
+
// ];
|
|
102
|
+
|
|
90
103
|
const card = [
|
|
91
104
|
ps.multiline( avatar ), ps.multiline( banner ),
|
|
92
|
-
hr, heading, hr,
|
|
93
|
-
twittering, tooting,
|
|
105
|
+
hr, heading, hr,
|
|
106
|
+
twittering, tooting, skeeting, threading,
|
|
107
|
+
githubing, linkedining,
|
|
94
108
|
webing, emailing, carding, bio, msg
|
|
95
109
|
];
|
|
96
110
|
|
|
97
111
|
// Put all our output together into a single variable so we can use boxen effectively
|
|
98
112
|
const output = card.join( newline );
|
|
99
113
|
|
|
100
|
-
console.log( boxen( output, options ) );
|
|
114
|
+
console.log( boxen( output, options ) );
|
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reverentgeek",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "My personal calling card.",
|
|
5
5
|
"main": "./bin/card.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"reverentgeek": "./bin/card.js"
|
|
8
8
|
},
|
|
9
|
+
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"lint": "eslint bin/*.js art/*.js"
|
|
11
12
|
},
|
|
@@ -21,12 +22,12 @@
|
|
|
21
22
|
"url": "https://github.com/reverentgeek/reverentgeek-card.git"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"boxen": "^
|
|
25
|
-
"chalk": "^
|
|
26
|
-
"gradient-string": "^
|
|
25
|
+
"boxen": "^8.0.1",
|
|
26
|
+
"chalk": "^5.3.0",
|
|
27
|
+
"gradient-string": "^3.0.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"eslint": "^
|
|
30
|
-
"eslint-config-reverentgeek": "^
|
|
30
|
+
"eslint": "^9.14.0",
|
|
31
|
+
"eslint-config-reverentgeek": "^5.1.0"
|
|
31
32
|
}
|
|
32
33
|
}
|