scottkosman 1.0.1 β 1.1.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/README.md +3 -2
- package/assets/scott.jpg +0 -0
- package/assets/scott.png +0 -0
- package/dist/utils/welcome.d.ts.map +1 -1
- package/dist/utils/welcome.js +31 -8
- package/dist/utils/welcome.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,13 +81,14 @@ scottkosman init
|
|
|
81
81
|
|
|
82
82
|
The CLI provides easy access to:
|
|
83
83
|
|
|
84
|
-
-
|
|
84
|
+
- π» **scottkosman.com**: Visit my personal website
|
|
85
85
|
- ππ»ββοΈ **How To Scott**: My "Manager README", useful info if you currently do or want to work with/for me
|
|
86
86
|
- π **GitHub Profile**: If you're reading this you probably already know what GitHub is
|
|
87
87
|
- π’ **LinkedIn Profile**: Join my Professional Networkβ’
|
|
88
|
+
- π **1Password**: Where I work
|
|
89
|
+
- π **Current Resume**: Check out what I've done in the past
|
|
88
90
|
- πΈ **Instagram**: See what I had for lunch
|
|
89
91
|
- π§ **Email Me**: Email? In 2025? I do check this, I promise
|
|
90
|
-
- π **1Password**: Where I work
|
|
91
92
|
|
|
92
93
|
## π¨βπΌ About Scott
|
|
93
94
|
|
package/assets/scott.jpg
CHANGED
|
Binary file
|
package/assets/scott.png
ADDED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":"AA4DA,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAoGjD"}
|
package/dist/utils/welcome.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.showWelcome = showWelcome;
|
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const figlet_1 = __importDefault(require("figlet"));
|
|
9
9
|
const gradient_string_1 = __importDefault(require("gradient-string"));
|
|
10
|
+
// import boxen from 'boxen'; // Uncomment when using the info box
|
|
10
11
|
const terminal_image_1 = __importDefault(require("terminal-image"));
|
|
11
12
|
const path_1 = __importDefault(require("path"));
|
|
12
13
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -14,7 +15,7 @@ const inquirer_1 = __importDefault(require("inquirer"));
|
|
|
14
15
|
const open_1 = __importDefault(require("open"));
|
|
15
16
|
const menuItems = [
|
|
16
17
|
{
|
|
17
|
-
name: '
|
|
18
|
+
name: 'π» scottkosman.com',
|
|
18
19
|
value: 'https://scottkosman.com',
|
|
19
20
|
description: 'Visit my personal website'
|
|
20
21
|
},
|
|
@@ -33,6 +34,16 @@ const menuItems = [
|
|
|
33
34
|
value: 'https://linkedin.com/in/scottkosman',
|
|
34
35
|
description: 'Join my Professional Networkβ’'
|
|
35
36
|
},
|
|
37
|
+
{
|
|
38
|
+
name: 'π 1Password',
|
|
39
|
+
value: 'https://1password.com',
|
|
40
|
+
description: 'Where I work'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'π Current Resume',
|
|
44
|
+
value: 'https://docs.google.com/document/d/1gcEzsNHWAllGH9mt6bfjie900B-rQNiatwdHiRj_Yog/edit?tab=t.0#heading=h.f5t1zjbkvcg2',
|
|
45
|
+
description: 'Check out what I\'ve done in the past'
|
|
46
|
+
},
|
|
36
47
|
{
|
|
37
48
|
name: 'πΈ Instagram',
|
|
38
49
|
value: 'https://instagram.com/humantorch',
|
|
@@ -43,21 +54,16 @@ const menuItems = [
|
|
|
43
54
|
value: 'mailto:kosman.scott@gmail.com',
|
|
44
55
|
description: 'Email? In 2025? I do check this, I promise.'
|
|
45
56
|
},
|
|
46
|
-
{
|
|
47
|
-
name: 'π 1Password',
|
|
48
|
-
value: 'https://1password.com',
|
|
49
|
-
description: 'Where I work'
|
|
50
|
-
}
|
|
51
57
|
];
|
|
52
58
|
async function showWelcome() {
|
|
53
59
|
// Clear the console
|
|
54
60
|
console.clear();
|
|
55
61
|
// Display image (if available)
|
|
56
|
-
const imagePath = path_1.default.join(__dirname, '../../assets/scott.
|
|
62
|
+
const imagePath = path_1.default.join(__dirname, '../../assets/scott.png');
|
|
57
63
|
if (fs_1.default.existsSync(imagePath)) {
|
|
58
64
|
try {
|
|
59
65
|
const imageBuffer = fs_1.default.readFileSync(imagePath);
|
|
60
|
-
const image = await terminal_image_1.default.buffer(imageBuffer, { width:
|
|
66
|
+
const image = await terminal_image_1.default.buffer(imageBuffer, { width: 20, height: 'auto' });
|
|
61
67
|
console.log(image.trim());
|
|
62
68
|
}
|
|
63
69
|
catch (e) {
|
|
@@ -76,8 +82,25 @@ async function showWelcome() {
|
|
|
76
82
|
console.log(gradientTitle);
|
|
77
83
|
// Create subtitle
|
|
78
84
|
const subtitle = chalk_1.default.bold('Toronto-based Engineering Manager at 1Password, 20+ year vet of the technology,\nmarketing, and digital strategy world. A recovering front-end developer who pivoted\nto management back in 2014, I now enjoy leading teams building the next generation\nof stuff you do on this "internet" thing. He/him.');
|
|
85
|
+
// Create info box (commented out for now, but can be reused later)
|
|
86
|
+
// const info = boxen(
|
|
87
|
+
// `${chalk.bold('Welcome!')}\n\n` +
|
|
88
|
+
// `${chalk.gray('This is a modern CLI built with:')}\n` +
|
|
89
|
+
// `${chalk.blue('β’ TypeScript')}\n` +
|
|
90
|
+
// `${chalk.blue('β’ Commander.js')}\n` +
|
|
91
|
+
// `${chalk.blue('β’ Chalk for styling')}\n` +
|
|
92
|
+
// `${chalk.blue('β’ Modern Node.js')}\n\n` +
|
|
93
|
+
// `${chalk.gray('Use')} ${chalk.yellow('scottkosman --help')} ${chalk.gray('to see available commands')}`,
|
|
94
|
+
// {
|
|
95
|
+
// padding: 1,
|
|
96
|
+
// margin: 1,
|
|
97
|
+
// borderStyle: 'round',
|
|
98
|
+
// borderColor: 'cyan',
|
|
99
|
+
// }
|
|
100
|
+
// );
|
|
79
101
|
// Display everything
|
|
80
102
|
console.log(subtitle);
|
|
103
|
+
// console.log(info); // Uncomment this line to show the info box
|
|
81
104
|
console.log();
|
|
82
105
|
// Show interactive menu
|
|
83
106
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../src/utils/welcome.ts"],"names":[],"mappings":";;;;;AA4DA,kCAoGC;AAhKD,kDAA0B;AAC1B,oDAA4B;AAC5B,sEAAuC;AACvC,kEAAkE;AAClE,oEAA2C;AAC3C,gDAAwB;AACxB,4CAAoB;AACpB,wDAAgC;AAChC,gDAAwB;AAQxB,MAAM,SAAS,GAAe;IAC5B;QACE,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EAAE,kFAAkF;KAChG;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,+BAA+B;QACtC,WAAW,EAAE,kEAAkE;KAChF;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EAAE,+BAA+B;KAC7C;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EAAE,cAAc;KAC5B;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,qHAAqH;QAC5H,WAAW,EAAE,uCAAuC;KACrD;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,kCAAkC;QACzC,WAAW,EAAE,0BAA0B;KACxC;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,+BAA+B;QACtC,WAAW,EAAE,6CAA6C;KAC3D;CAEF,CAAC;AAEK,KA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