sunmeat 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 +32 -0
- package/package.json +19 -0
package/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const boxen = require("boxen");
|
|
4
|
+
const chalk = require("chalk");
|
|
5
|
+
|
|
6
|
+
const options = {
|
|
7
|
+
padding: 1,
|
|
8
|
+
margin: 1,
|
|
9
|
+
borderStyle: "round",
|
|
10
|
+
borderColor: "cyan",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const data = {
|
|
14
|
+
name: chalk.white.bold("sunmeat"),
|
|
15
|
+
role: chalk.cyan("Software Engineer & Lecturer"),
|
|
16
|
+
website: chalk.cyan("http://sunmeat.site/"),
|
|
17
|
+
linkedin: chalk.cyan("https://www.linkedin.com/in/sunmeat/"),
|
|
18
|
+
github: chalk.cyan("https://github.com/sunmeat"),
|
|
19
|
+
card: chalk.white("npx sunmeat"),
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const card = `
|
|
23
|
+
${chalk.bold("👤 Name :")} ${data.name}
|
|
24
|
+
${chalk.bold("💼 Role :")} ${data.role}
|
|
25
|
+
${chalk.bold("🌐 Web :")} ${data.website}
|
|
26
|
+
${chalk.bold("💬 LinkedIn:")} ${data.linkedin}
|
|
27
|
+
${chalk.bold("🐱 GitHub :")} ${data.github}
|
|
28
|
+
|
|
29
|
+
${chalk.italic.gray("Card :")} ${data.card}
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
console.log(boxen(card, options));
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sunmeat",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "sunmeat",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"boxen": "^8.0.1",
|
|
14
|
+
"chalk": "^5.6.2"
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"sunmeat": "index.js"
|
|
18
|
+
}
|
|
19
|
+
}
|