ritik 0.0.13 → 0.0.14

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/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import h from"axios";import u from"boxen";import o from"chalk";import{select as g}from"@inquirer/prompts";import l from"open";const c=22,p=52,m=c+p+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")},r=(e,t,n)=>f[e]?.dim?.bgWhite?.inverse(`${t.padStart(c," ")}: ${n.padEnd(p," ")}`),b=e=>e.charAt(0).toUpperCase()+e.slice(1),s=(e,t=" ")=>e.padStart(e.length+Math.floor((m-e.length)/2),t).padEnd(m,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.displayName.split(" ")[0],n=`https://${e.personal.displayEmail.replace(/.*@/,"")}`,i=[null,o.bold.green(s(e.personal.displayName)),o.blackBright(s(e.personal.currentRole)),null];e.socialHandles.forEach(a=>{i.push(r(a.platform,b(a.platform),`${a.url}/${a.handle}`))}),i.push(r("website","Portfolio",n)),i.push(r("npx","Npx",`npx ${t.toLowerCase()}`)),i.push(null),w.forEach(a=>{i.push(o.italic.whiteBright(s(a)))}),i.push(null);const d=u(i.join(`
2
+ import h from"axios";import u from"boxen";import o from"chalk";import{select as g}from"@inquirer/prompts";import l 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")},r=(e,t,a)=>f[e]?.dim?.bgWhite?.inverse(`${t.padStart(c," ")}: ${a.padEnd(m," ")}`),b=e=>e.charAt(0).toUpperCase()+e.slice(1),s=(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],a=`https://${e.personal.displayEmail.replace(/.*@/,"")}`,i=[null,o.bold.green(s(e.personal.name)),o.blackBright(s(e.personal.currentRole)),null];e.socialHandles.forEach(n=>{i.push(r(n.platform,b(n.platform),`${n.url}/${n.handle}`))}),i.push(r("website","Portfolio",a)),i.push(r("npx","Npx",`npx ${t.toLowerCase()}`)),i.push(null),w.forEach(n=>{i.push(o.italic.whiteBright(s(n)))}),i.push(null);const d=u(i.join(`
4
4
  `),{margin:1,float:"center",borderStyle:"single",borderColor:"green"});console.log(d),console.log(y)}var $=(e=>(e.EMAIL="email",e.RESUME="resume",e.MEETING="meeting",e.EXIT="exit",e))($||{});const k=[{name:`Send me an ${o.green.bold("email")}?`,value:"email",description:o.white.dim.bold(`
5
5
  I will get back to you as soon as possible.`)},{name:`Checkout my ${o.magentaBright.bold("Resume")}?`,value:"resume",description:o.white.dim.bold(`
6
6
  I am actively seeking new opportunities and welcome any inquiries.`)},{name:`Schedule a ${o.redBright.bold("Meeting")}?`,value:"meeting",description:o.white.dim.bold(`
7
7
  I will make every effort to respond promptly.`)},{name:"Exit.",value:"exit",description:o.white.dim.bold(`
8
- Hasta la vista.`)}];function v(e){const t={email:()=>{l(`mailto:${e?.personal?.displayEmail}?subject=Hi%20${e?.personal?.displayName.split(" ")[0]}!`),console.log(`
8
+ Hasta la vista.`)}];function v(e){const t={email:()=>{l(`mailto:${e?.personal?.displayEmail}?subject=Hi%20${e?.personal?.name?.split?.(" ")?.[0]}!`),console.log(`
9
9
  Done, Catch you in your inbox soon!
10
10
  `)},resume:()=>{l("https://go.ritik.me/resume"),console.log(`
11
11
  Your interest is greatly appreciated!
12
12
  `)},meeting:()=>{l("https://calendly.com/itzzritik/hello"),console.log(`
13
13
  Looking forward to our meeting! See you there.
14
14
  `)},exit:()=>{console.log(`Hasta la vista.
15
- `)}};g({message:"Choose an Action",choices:k}).then(n=>t[n]())}const E=async()=>{console.clear();const e=await h.get("https://raw.githubusercontent.com/itzzritik/ItzzRitik/main/profile/profile.json");x(e.data),v(e.data)};E();
15
+ `)}};g({message:"Choose an Action",choices:k}).then(a=>t[a]())}const E=async()=>{console.clear();const e=await h.get("https://raw.githubusercontent.com/itzzritik/ItzzRitik/main/profile/profile.json");x(e.data),v(e.data)};E();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ritik",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "description": "CLI Portfolio",
6
6
  "main": "dist/index.js",