feat: add version info in console.log (#117)

This commit is contained in:
QuentinHsu
2022-06-20 14:14:03 +08:00
committed by GitHub
parent 56abcf29f7
commit fc86f3e15d
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
"ignorePatterns": ["*.min.js", "src/vendor/*.js"],
"env": {
"browser": true,
"es2021": true
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
+1 -1
View File
@@ -6,7 +6,7 @@
*
*
* Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket!
* @updated: 2022/6/20 11:11:18
* @updated: 6/20/2022, 12:32:19 PM
* @version: 2.0.7
* @author: Peng-YM
* @github: https://github.com/Peng-YM/Sub-Store
+3
View File
@@ -10,10 +10,13 @@
* @github: https://github.com/Peng-YM/Sub-Store
* @documentation: https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46
*/
const packageJson = require('../package.json');
const { version } = packageJson;
console.log(
`
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
𝑺𝒖𝒃-𝑺𝒕𝒐𝒓𝒆 © 𝑷𝒆𝒏𝒈-𝒀𝑴
Version: ${version}
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
`,
);
+2 -2
View File
File diff suppressed because one or more lines are too long