nazmul 1.0.0
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/index.js +46 -0
- package/package.json +22 -0
package/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import boxen from "boxen";
|
|
5
|
+
import inquirer from "inquirer";
|
|
6
|
+
|
|
7
|
+
const data = {
|
|
8
|
+
name: chalk.greenBright("Nazmul Hasan Shanto"),
|
|
9
|
+
work: `${chalk.white("Fullstack Developer")}`,
|
|
10
|
+
github: chalk.cyan("https://github.com/NazmulHasan18"),
|
|
11
|
+
linkedin: chalk.cyan("https://www.linkedin.com/in/nazmul-hasan-shanto-a67041182/"),
|
|
12
|
+
web: chalk.cyan("https://nazmul-portfolio-next-beryl.vercel.app/"),
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const output = `
|
|
16
|
+
${data.name}
|
|
17
|
+
|
|
18
|
+
${chalk.bold("Work:")} ${data.work}
|
|
19
|
+
|
|
20
|
+
${chalk.bold("GitHub:")} ${data.github}
|
|
21
|
+
${chalk.bold("LinkedIn:")} ${data.linkedin}
|
|
22
|
+
${chalk.bold("Web:")} ${data.web}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
const box = boxen(output, {
|
|
26
|
+
padding: 1,
|
|
27
|
+
margin: 1,
|
|
28
|
+
borderStyle: "round",
|
|
29
|
+
borderColor: "green",
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
console.log(box);
|
|
33
|
+
|
|
34
|
+
// interactive menu
|
|
35
|
+
const prompt = await inquirer.prompt([
|
|
36
|
+
{
|
|
37
|
+
type: "list",
|
|
38
|
+
name: "action",
|
|
39
|
+
message: "What you want to do?",
|
|
40
|
+
choices: ["Send me an email", "Exit"],
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
43
|
+
|
|
44
|
+
if (prompt.action === "Send me an email") {
|
|
45
|
+
console.log(chalk.blue("mailto:your@email.com"));
|
|
46
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nazmul",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Nazmul CLI Business Card",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"nazmul": "./index.js"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"boxen": "^8.0.1",
|
|
18
|
+
"chalk": "^5.6.2",
|
|
19
|
+
"inquirer": "^13.4.1",
|
|
20
|
+
"ora": "^9.3.0"
|
|
21
|
+
}
|
|
22
|
+
}
|