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.
- package/README.md +11 -3
- package/index.js +95 -81
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
### Hi there š
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
77
|
+
name: chalk.bold.green(" Behnam Ghafary"),
|
|
65
78
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
113
|
-
|
|
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