ritik 0.0.15 → 0.0.16
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/dist/index.js +10 -8
- package/package.json +14 -13
package/dist/index.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
`),
|
|
4
|
-
`),{margin:1,float:"center",borderStyle:"single",borderColor:"
|
|
2
|
+
import d from"ora";import u from"boxen";import o from"chalk";import{select as g}from"@inquirer/prompts";import s from"open";const c=22,m=52,p=c+m+2,f={facebook:o.hex("#3b5998"),twitter:o.hex("#1DA1F2"),linkedin:o.hex("#0077B5"),github:o.hex("#666666"),instagram:o.hex("#fb3958"),website:o.hex("#f1c40f"),email:o.hex("#f39c12"),npx:o.hex("#cb3837")},a=(e,t,i)=>(f[e]||o.white).dim.bgWhite.inverse(`${t.padStart(c," ")}: ${i.padEnd(m," ")}`),b=e=>e.charAt(0).toUpperCase()+e.slice(1),l=(e,t=" ")=>e.padStart(e.length+Math.floor((p-e.length)/2),t).padEnd(p,t),y=[`Tip: Try ${o.cyanBright.bold("cmd/ctrl + click")} on the links above`,null].join(`
|
|
3
|
+
`),w=["I am actively seeking new opportunities and welcome any inquiries","Please feel free to contact me for questions or casual greetings","I will make every effort to respond promptly","My inbox remains open for your correspondence."];function x(e){const t=e.personal.name.split(" ")?.[0],i=`https://${e.personal.displayEmail.replace(/.*@/,"")}`,n=[null,o.bold.cyanBright(l(e.personal.name)),o.whiteBright(l(e.personal.currentRole)),null];e.socialHandles.forEach(r=>{n.push(a(r.platform,b(r.platform),`${r.url}/${r.handle}`))}),n.push(a("website","Portfolio",i)),n.push(a("npx","Npx",`npx ${t.toLowerCase()}`)),n.push(null),w.forEach(r=>{n.push(o.italic.whiteBright(l(r)))}),n.push(null);const h=u(n.join(`
|
|
4
|
+
`),{margin:1,float:"center",borderStyle:"single",borderColor:"cyan"});console.log(h),console.log(y)}var $=(e=>(e.EMAIL="email",e.RESUME="resume",e.MEETING="meeting",e.EXIT="exit",e))($||{});const E=[{name:`Send me an ${o.cyanBright.bold("email")}?`,value:"email",description:o.white.dim.bold(`
|
|
5
5
|
Send a message \u2014 I promise low-latency replies.`)},{name:`Checkout my ${o.magentaBright.bold("Resume")}?`,value:"resume",description:o.white.dim.bold(`
|
|
6
|
-
Pulling the latest version of my resume from production.`)},{name:`Schedule a ${o.
|
|
6
|
+
Pulling the latest version of my resume from production.`)},{name:`Schedule a ${o.yellowBright.bold("Meeting")}?`,value:"meeting",description:o.white.dim.bold(`
|
|
7
7
|
Scheduling a sync \u2014 adding coffee to the calendar... \u2615`)},{name:"Exit.",value:"exit",description:o.white.dim.bold(`
|
|
8
|
-
Ending session, but not the connection.`)}];function
|
|
8
|
+
Ending session, but not the connection.`)}];function k(e){const t=e.personal.name.split(" ")?.[0],i={email:()=>{s(`mailto:${e.personal.displayEmail}?subject=Hi%20${t}!`),console.log(`
|
|
9
9
|
|
|
10
10
|
Email launched \u2014 preparing witty yet professional response.
|
|
11
|
-
`)},resume:()=>{
|
|
11
|
+
`)},resume:()=>{s("https://cv.ritik.me"),console.log(`
|
|
12
12
|
|
|
13
13
|
Thanks for reading \u2014 hope my resume speaks your language.
|
|
14
|
-
`)},meeting:()=>{
|
|
14
|
+
`)},meeting:()=>{s("https://meet.ritik.me"),console.log(`
|
|
15
15
|
|
|
16
16
|
Meeting scheduled \u2014 time to build something great together.
|
|
17
17
|
`)},exit:()=>{console.log(`
|
|
18
18
|
|
|
19
19
|
Session ended \u2014 but DMs are always open.
|
|
20
|
-
`)}};
|
|
20
|
+
`)}};g({message:"Choose an Action",choices:E}).then(n=>i[n]())}const v=async()=>{console.clear();const e=d("Fetching profile data...").start();try{const t=await fetch("https://raw.githubusercontent.com/itzzritik/ItzzRitik/main/profile/profile.json");if(!t.ok)throw new Error(`Failed to fetch profile: ${t.statusText}`);const i=await t.json();e.succeed("Profile loaded successfully"),x(i),k(i)}catch(t){e.fail("Failed to load profile"),t instanceof Error?console.error(`
|
|
21
|
+
Error: ${t.message}`):console.error(`
|
|
22
|
+
An unknown error occurred.`),process.exit(1)}};v();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ritik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI Portfolio",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,22 +17,23 @@
|
|
|
17
17
|
"clean": "rm -rf node_modules pnpm-lock.yaml && pnpm install"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@inquirer/prompts": "^
|
|
20
|
+
"@inquirer/prompts": "^8.2.0",
|
|
21
21
|
"boxen": "^8.0.1",
|
|
22
|
-
"chalk": "^5.
|
|
23
|
-
"open": "^
|
|
22
|
+
"chalk": "^5.6.2",
|
|
23
|
+
"open": "^11.0.0",
|
|
24
|
+
"ora": "^9.0.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
28
|
-
"@typescript-eslint/parser": "^8.
|
|
29
|
-
"esbuild": "^0.
|
|
30
|
-
"eslint": "^9.
|
|
31
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
32
|
-
"eslint-plugin-import": "^2.
|
|
33
|
-
"rollup": "^4.
|
|
27
|
+
"@types/node": "^25.0.9",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
29
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
30
|
+
"esbuild": "^0.27.2",
|
|
31
|
+
"eslint": "^9.39.2",
|
|
32
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
33
|
+
"eslint-plugin-import": "^2.32.0",
|
|
34
|
+
"rollup": "^4.55.1",
|
|
34
35
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
35
|
-
"typescript": "^5.
|
|
36
|
+
"typescript": "^5.9.3"
|
|
36
37
|
},
|
|
37
38
|
"publishConfig": {
|
|
38
39
|
"access": "public",
|