behnamghafary 1.0.7 → 1.0.9

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 (3) hide show
  1. package/README.md +11 -3
  2. package/index.js +95 -81
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,25 @@
1
1
  ### Hi there šŸ‘‹
2
- #### I'm a Full-Stack Developer working in Goa, India.
2
+
3
+ #### I'm a Full-Stack Developer working in Berlin, Germany.
4
+
5
+ Please look at [my personal website](https://behnamghafary.com) for more detail
3
6
 
4
7
  #### šŸ’» T-Shaped Developer ([?](https://letslearnabout.net/blog/what-it-is-a-t-shaped-developer-and-why-you-should-be-one))
8
+
5
9
  #### 🌱 I’m currently learning things about IOT and coding on Arduino
10
+
6
11
  #### šŸ“« How to reach me: [Email](mailto:behnam.ghafary@gmail.com), [Linkedin](https://www.linkedin.com/in/behnamghafary/)
12
+
7
13
  #### šŸ”­ My Latest Projects:
14
+
8
15
  - [Enlightened Robot](https://enlightenedrobot.com/)
9
16
  - [Ayandeyeman.ir](https://ayandeyeman.ir/)
10
- #### šŸ˜„ FUN: You can find my personal info through NPM package by running
17
+
18
+ #### šŸ˜„ FUN: You can find my personal info through NPM package by running
19
+
11
20
  ```bash
12
21
  npx behnamghafary
13
22
  ```
14
- (Reference: [HERE](https://github.com/Ridermansb/ridermansb))
15
23
 
16
24
 
17
25
  <!--
package/index.js CHANGED
@@ -13,95 +13,111 @@ import cliSpinners from "cli-spinners";
13
13
  import fs from "fs";
14
14
  import path from "path";
15
15
 
16
-
17
16
  clear();
18
17
 
19
18
  const prompt = inquirer.createPromptModule();
20
19
 
21
- // Questions after the card
20
+ // Questions after the card
22
21
  const questions = [
23
- {
24
- type: "list",
25
- name: "action",
26
- message: "What you want to do?",
27
- choices: [
28
- {
29
- name: `Send me an ${chalk.green.bold("email")}?`,
30
- value: () => {
31
- open("mailto:behnam.ghafary@gmail.com");
32
- console.log("\nDone, see you soon.\n");
33
- }
34
- },
35
- {
36
- name: `Download my ${chalk.magentaBright.bold("Resume")}?`,
37
- value: () => {
38
- // cliSpinners.dots;
39
- const loader = ora({
40
- text: ' Downloading Resume',
41
- spinner: cliSpinners.material,
42
- }).start();
43
- let pipe = request('https://bit.ly/3GZzwbA').pipe(fs.createWriteStream('./Behnam Ghafary-CV.pdf'));
44
- pipe.on("finish", function () {
45
- let downloadPath = path.join(process.cwd(), 'Behnam Ghafary-CV.pdf')
46
- console.log(`\nResume Downloaded at ${downloadPath} \n`);
47
- open(downloadPath)
48
- loader.stop();
49
- });
50
- }
51
- },
52
- {
53
- name: "Just quit.",
54
- value: () => {
55
- console.log("Good Bye!\n");
56
- }
57
- }
58
- ]
59
- }
22
+ {
23
+ type: "list",
24
+ name: "action",
25
+ message: "What you want to do?",
26
+ choices: [
27
+ {
28
+ name: `Send me an ${chalk.green.bold("email")}?`,
29
+ value: () => {
30
+ open("mailto:behnam.ghafary@gmail.com");
31
+ console.log("\nDone, see you soon.\n");
32
+ },
33
+ },
34
+ {
35
+ name: `Send your website ${chalk.blueBright.bold(
36
+ "behnamghafary.com"
37
+ )}?`,
38
+ value: () => {
39
+ open("https://behnamghafary.com");
40
+ console.log("\nDone, Enjoy.\n");
41
+ },
42
+ },
43
+ {
44
+ name: `Download my ${chalk.magentaBright.bold("Resume")}?`,
45
+ value: () => {
46
+ // cliSpinners.dots;
47
+ const loader = ora({
48
+ text: " Downloading Resume",
49
+ spinner: cliSpinners.material,
50
+ }).start();
51
+ let pipe = request("https://bit.ly/43kaeQW").pipe(
52
+ fs.createWriteStream("./Behnam Ghafary-CV.pdf")
53
+ );
54
+ pipe.on("finish", function () {
55
+ let downloadPath = path.join(
56
+ process.cwd(),
57
+ "Behnam Ghafary-CV.pdf"
58
+ );
59
+ console.log(`\nResume Downloaded at ${downloadPath} \n`);
60
+ open(downloadPath);
61
+ loader.stop();
62
+ });
63
+ },
64
+ },
65
+ {
66
+ name: "Just quit.",
67
+ value: () => {
68
+ console.log("Good Bye!\n");
69
+ },
70
+ },
71
+ ],
72
+ },
60
73
  ];
61
74
 
62
75
  // Data for the card
63
76
  const data = {
64
- name: chalk.bold.green(" Behnam Ghafary"),
77
+ name: chalk.bold.green(" Behnam Ghafary"),
65
78
 
66
- twitter: chalk.gray("https://twitter.com/") + chalk.cyan("behnam_ghafary"),
67
- github: chalk.gray("https://github.com/") + chalk.green("behnamgh"),
68
- linkedin: chalk.gray("https://linkedin.com/in/") + chalk.blue("behnamghafary"),
69
- email: chalk.cyan("behnam.ghafary") + chalk.gray("@gmail.com"),
70
- npx: chalk.red("npx") + " " + chalk.white("behnamghafary"),
79
+ webiste: chalk.blueBright(" https://behnamghafary.com/"),
80
+ twitter: chalk.gray("https://twitter.com/") + chalk.cyan("behnam_ghafary"),
81
+ github: chalk.gray("https://github.com/") + chalk.green("behnamgh"),
82
+ linkedin:
83
+ chalk.gray("https://linkedin.com/in/") + chalk.blue("behnamghafary"),
84
+ email: chalk.cyan("behnam.ghafary") + chalk.gray("@gmail.com"),
85
+ npx: chalk.red("npx") + " " + chalk.white("behnamghafary"),
71
86
 
72
- labelTwitter: chalk.white.bold(" Twitter:"),
73
- labelGitHub: chalk.white.bold(" GitHub:"),
74
- labelLinkedIn: chalk.white.bold(" LinkedIn:"),
75
- labelEmail: chalk.white.bold(" Email:"),
76
- labelCard: chalk.white.bold(" Card:")
87
+ labelTwitter: chalk.white.bold(" Twitter:"),
88
+ labelGitHub: chalk.white.bold(" GitHub:"),
89
+ labelLinkedIn: chalk.white.bold(" LinkedIn:"),
90
+ labelEmail: chalk.white.bold(" Email:"),
91
+ labelCard: chalk.white.bold(" Card:"),
77
92
  };
78
93
 
79
94
  // Build the card
80
95
  const me = boxen(
81
- [
82
- `${data.name}`,
83
- ``,
84
- `${data.labelTwitter} ${data.twitter}`,
85
- `${data.labelGitHub} ${data.github}`,
86
- `${data.labelLinkedIn} ${data.linkedin}`,
87
- ``,
88
- `${data.labelEmail} ${data.email}`,
89
- ``,
90
- `${data.labelCard} ${data.npx}`,
91
- ``,
92
- `${chalk.italic(
93
- "I'm curious, enthusiastic and student most of the time."
94
- )}`,
95
- `${chalk.italic("The rest of the time I experiment with my code,")}`,
96
- `${chalk.italic("to bring my ideas to life.")}`
97
- ].join("\n"),
98
- {
99
- margin: 1,
100
- float: 'center',
101
- padding: 1,
102
- borderStyle: "single",
103
- borderColor: "green"
104
- }
96
+ [
97
+ `${data.name}`,
98
+ `${data.webiste}`,
99
+ ``,
100
+ `${data.labelTwitter} ${data.twitter}`,
101
+ `${data.labelGitHub} ${data.github}`,
102
+ `${data.labelLinkedIn} ${data.linkedin}`,
103
+ ``,
104
+ `${data.labelEmail} ${data.email}`,
105
+ ``,
106
+ `${data.labelCard} ${data.npx}`,
107
+ ``,
108
+ `${chalk.italic(
109
+ "I'm curious, enthusiastic and student most of the time."
110
+ )}`,
111
+ `${chalk.italic("The rest of the time I experiment with my code,")}`,
112
+ `${chalk.italic("to bring my ideas to life.")}`,
113
+ ].join("\n"),
114
+ {
115
+ margin: 1,
116
+ float: "center",
117
+ padding: 1,
118
+ borderStyle: "single",
119
+ borderColor: "green",
120
+ }
105
121
  );
106
122
 
107
123
  // Print the card
@@ -109,14 +125,12 @@ console.log(me);
109
125
 
110
126
  // Optional tip to help users use the links
111
127
  const tip = [
112
- `Tip: Try ${chalk.cyanBright.bold(
113
- "cmd/ctrl + click"
114
- )} on the links above`,
115
- '',
128
+ `Tip: Try ${chalk.cyanBright.bold("cmd/ctrl + click")} on the links above`,
129
+ "",
116
130
  ].join("\n");
117
131
 
118
- // Show the tip
132
+ // Show the tip
119
133
  console.log(tip);
120
134
 
121
- // Ask the Inquirer questions.
122
- prompt(questions).then(answer => answer.action());
135
+ // Ask the Inquirer questions.
136
+ prompt(questions).then((answer) => answer.action());
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "behnamghafary",
3
3
  "type": "module",
4
- "version": "1.0.7",
5
- "description": "Personla NPM card",
4
+ "version": "1.0.9",
5
+ "description": "Personal NPM card",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"