@yuw-cli-dev/log 1.0.36
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 -0
- package/lib/index.js +11 -0
- package/package.json +33 -0
package/README.md
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const log = require("npmlog");
|
|
4
|
+
|
|
5
|
+
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : "info"; // debug显示
|
|
6
|
+
|
|
7
|
+
log.heading = "yuw-cli"; // 修改前缀
|
|
8
|
+
log.headingStyle = { fg: "red", bg: "white", bold: true }; // 前缀样式
|
|
9
|
+
log.addLevel("success", 2000, { fg: "green", bold: true }); // 添加自定义命令
|
|
10
|
+
|
|
11
|
+
module.exports = log;
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yuw-cli-dev/log",
|
|
3
|
+
"version": "1.0.36",
|
|
4
|
+
"description": "yu-cli-dev log",
|
|
5
|
+
"author": "yuwei <yuwei@huya.com>",
|
|
6
|
+
"homepage": "https://github.com/yousanjin/yuw-cli#readme",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"directories": {
|
|
10
|
+
"lib": "lib",
|
|
11
|
+
"test": "__tests__"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/yousanjin/yuw-cli.git"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/yousanjin/yuw-cli/issues"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"npmlog": "^7.0.1"
|
|
31
|
+
},
|
|
32
|
+
"gitHead": "3158601705698cd7fd8a308d939a6ccce3d77035"
|
|
33
|
+
}
|