dilpreetsinghverma 1.0.1 → 1.0.2

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 +34 -36
  2. package/package.json +1 -1
package/bin/card.js CHANGED
@@ -1,17 +1,19 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  'use strict';
4
4
 
5
- const chalk = require('chalk');
6
- const boxen = require('boxen');
7
- const gradient = require('gradient-string');
5
+ // Force UTF-8 output on Windows
6
+ if (process.platform === 'win32') {
7
+ try { require('child_process').execSync('chcp 65001', { stdio: 'ignore' }); } catch (_) {}
8
+ }
9
+
10
+ const chalk = require('chalk');
11
+ const boxen = require('boxen');
12
+ const gradient = require('gradient-string');
8
13
 
9
- // ─── Clear screen ───────────────────────────────────────────────────────────
10
14
  process.stdout.write('\x1Bc');
11
15
 
12
- // ─── Colour palette ─────────────────────────────────────────────────────────
13
16
  const blue = chalk.hex('#58a6ff');
14
- const dblue = chalk.hex('#1f6feb');
15
17
  const green = chalk.hex('#3fb950');
16
18
  const orange = chalk.hex('#ff9500');
17
19
  const purple = chalk.hex('#bc8cff');
@@ -19,42 +21,39 @@ const dim = chalk.dim;
19
21
  const bold = chalk.bold;
20
22
  const white = chalk.white;
21
23
 
22
- // ─── Gradient header ─────────────────────────────────────────────────────────
23
24
  const header = gradient(['#58a6ff', '#bc8cff', '#3fb950']).multiline(
24
- ` ██████╗ ██╗██╗ ██████╗ ██████╗ ███████╗███████╗████████╗
25
- ██╔══██╗██║██║ ██╔══██╗██╔══██╗██╔════╝██╔════╝╚══██╔══╝
26
- ██║ ██║██║██║ ██████╔╝██████╔╝█████╗ █████╗ ██║
27
- ██║ ██║██║██║ ██╔═══╝ ██╔══██╗██╔══╝ ██╔══╝ ██║
28
- ██████╔╝██║███████╗██║ ██║ ██║███████╗███████╗ ██║
29
- ╚═════╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ `
25
+ ` ██████╗ ██╗██╗ ██████╗ ██████╗ ███████╗███████╗████████╗
26
+ ██╔══██╗██║██║ ██╔══██╗██╔══██╗██╔════╝██╔════╝╚══██╔══╝
27
+ ██║ ██║██║██║ ██████╔╝██████╔╝█████╗ █████╗ ██║
28
+ ██║ ██║██║██║ ██╔═══╝ ██╔══██╗██╔══╝ ██╔══╝ ██║
29
+ ██████╔╝██║███████╗██║ ██║ ██║███████╗███████╗ ██║
30
+ ╚═════╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ `
30
31
  );
31
32
 
32
- // ─── Label helper ────────────────────────────────────────────────────────────
33
33
  const row = (icon, label, value, color = white) =>
34
34
  ` ${icon} ${dim(label.padEnd(13))}${color(value)}`;
35
35
 
36
- const divider = dim(' ' + '─'.repeat(56));
36
+ const divider = dim(' ' + '-'.repeat(56));
37
37
 
38
- // ─── Card body ───────────────────────────────────────────────────────────────
39
38
  const card = [
40
39
  '',
41
40
  ` ${bold.white('Dilpreet Singh Verma')}`,
42
- ` ${dim('Founder · Full-Stack Builder · CS & AI/ML Student')}`,
41
+ ` ${dim('Founder . Full-Stack Builder . CS & AI/ML Student')}`,
43
42
  '',
44
43
  divider,
45
44
  '',
46
- row('🌐', 'Portfolio', 'dilpreet-webresume.vercel.app', blue),
47
- row('🚀', 'Company', 'eventfoldstudio.com', orange),
48
- row('🐙', 'GitHub', 'github.com/DilpreetSinghVerma', blue),
49
- row('💼', 'LinkedIn', 'in/dilpreet-singh-709b35310', blue),
50
- row('📧', 'Email', 'dilpreetsinghverma@gmail.com', green),
51
- row('📍', 'Location', 'Ludhiana, Punjab, India 🇮🇳', white),
45
+ row('>', 'Portfolio', 'dilpreet-webresume.vercel.app', blue),
46
+ row('>', 'Company', 'eventfoldstudio.com', orange),
47
+ row('>', 'GitHub', 'github.com/DilpreetSinghVerma', blue),
48
+ row('>', 'LinkedIn', 'in/dilpreet-singh-709b35310', blue),
49
+ row('>', 'Email', 'dilpreetsinghverma@gmail.com', green),
50
+ row('>', 'Location', 'Ludhiana, Punjab, India', white),
52
51
  '',
53
52
  divider,
54
53
  '',
55
- ` ${purple('▸ Building')} ${white('EventFold Studio · Kalam Notes · Jarvis AI')}`,
56
- ` ${green('▸ Stack')} ${white('React · Next.js · TypeScript · Firebase · Python')}`,
57
- ` ${orange('▸ Open to')} ${white('SWE Internships · Collaborations · Freelance')}`,
54
+ ` ${purple('Building')} EventFold Studio . Kalam Notes . Jarvis AI`,
55
+ ` ${green('Stack')} React . Next.js . TypeScript . Firebase . Python`,
56
+ ` ${orange('Open to')} SWE Internships . Collaborations . Freelance`,
58
57
  '',
59
58
  divider,
60
59
  '',
@@ -62,22 +61,21 @@ const card = [
62
61
  '',
63
62
  ].join('\n');
64
63
 
65
- // ─── Render ──────────────────────────────────────────────────────────────────
66
64
  console.log('\n' + header + '\n');
67
65
 
68
66
  console.log(
69
67
  boxen(card, {
70
- padding: { top: 0, bottom: 0, left: 1, right: 3 },
71
- margin: { top: 0, bottom: 1, left: 2, right: 2 },
72
- borderStyle: 'round',
73
- borderColor: '#58a6ff',
74
- title: blue.bold(' 👨‍💻 Developer Card '),
75
- titleAlignment: 'center',
68
+ padding: { top: 0, bottom: 0, left: 1, right: 3 },
69
+ margin: { top: 0, bottom: 1, left: 2, right: 2 },
70
+ borderStyle: 'round',
71
+ borderColor: '#58a6ff',
72
+ title: blue.bold(' Developer Card '),
73
+ titleAlignment: 'center',
76
74
  })
77
75
  );
78
76
 
79
77
  console.log(
80
78
  ' ' + dim('Liked what you saw? ') +
81
79
  blue('github.com/DilpreetSinghVerma') +
82
- dim(' — drop a ⭐ on a repo!\n')
83
- );
80
+ dim(' -- drop a star on a repo!\n')
81
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dilpreetsinghverma",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Dilpreet Singh Verma's interactive developer card — run 'npx dilpreetsinghverma'",
5
5
  "bin": {
6
6
  "dilpreetsinghverma": "bin/card.js"