ritik 0.0.4 → 0.0.5
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 +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"
|
|
2
|
-
`)
|
|
3
|
-
`),{margin:1,float:"center",borderStyle:"single",borderColor:"green"});console.log(
|
|
1
|
+
(function(t,o){typeof exports=="object"&&typeof module<"u"?o(require("axios"),require("chalk"),require("boxen"),require("open"),require("@inquirer/prompts")):typeof define=="function"&&define.amd?define(["axios","chalk","boxen","open","@inquirer/prompts"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.o$1,t.e,t.p,t.t,t.prompts))})(this,function(t,o,p,s,u){"use strict";const m={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")},l=(e,i,r)=>m[e]?.dim?.bgWhite?.inverse(`${i.padStart(22," ")}: ${r.padEnd(52," ")}`),h=e=>e.charAt(0).toUpperCase()+e.slice(1),c=(e,i=" ")=>e.padStart(e.length+Math.floor((76-e.length)/2),i).padEnd(76,i),d=[`Tip: Try ${o.cyanBright.bold("cmd/ctrl + click")} on the links above`,null].join(`
|
|
2
|
+
`),f=["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 g(e){const i=e.personal.displayName.split(" ")[0],r=`https://${e.personal.displayEmail.replace(/.*@/,"")}`,n=[null,o.bold.green(c(e.personal.displayName)),o.blackBright(c(e.personal.currentRole)),null];e.socialHandles.forEach(a=>{n.push(l(a.platform,h(a.platform),`${a.url}/${a.handle}`))}),n.push(l("website","Portfolio",r)),n.push(l("npx","Npx",`npx ${i.toLowerCase()}`)),n.push(null),f.forEach(a=>{n.push(o.italic.whiteBright(c(a)))}),n.push(null);const x=p(n.join(`
|
|
3
|
+
`),{margin:1,float:"center",borderStyle:"single",borderColor:"green"});console.log(x),console.log(d)}var y=(e=>(e.EMAIL="email",e.RESUME="resume",e.MEETING="meeting",e.QUIT="quit",e))(y||{});const $=[{name:`Send me an ${o.green.bold("email")}?`,value:"email"},{name:`Checkout my ${o.magentaBright.bold("Resume")}?`,value:"resume"},{name:`Schedule a ${o.redBright.bold("Meeting")}?`,value:"meeting"},{name:"Exit.",value:"quit"}];function b(e){const i={email:()=>{s(`mailto:${e?.personal?.displayEmail}?subject=Hi%20${e?.personal?.displayName.split(" ")[0]}!`),console.log(`
|
|
4
4
|
Done, Catch you in your inbox soon!
|
|
5
|
-
`)},resume:()=>{
|
|
5
|
+
`)},resume:()=>{s("https://go.ritik.me/resume"),console.log(`
|
|
6
6
|
Your interest is greatly appreciated!
|
|
7
|
-
`)},meeting:()=>{
|
|
7
|
+
`)},meeting:()=>{s("https://calendly.com/itzzritik/hello"),console.log(`
|
|
8
8
|
Looking forward to our meeting! See you there.
|
|
9
9
|
`)},quit:()=>{console.log(`Hasta la vista.
|
|
10
|
-
`)}};
|
|
10
|
+
`)}};u.select({message:"Choose an Action",choices:$}).then(r=>i[r]())}(async()=>{console.clear();const e=await t.get("https://raw.githubusercontent.com/itzzritik/ItzzRitik/main/profile/profile.json");g(e.data),b(e.data)})()});
|