sunmeat 1.0.0 → 1.0.1

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