Comparing version 1.0.0 to 1.0.1
#!/usr/bin/env node | ||
// 必须在文件头添加如上内容指定运行环境为node | ||
console.log("Hello World"); | ||
const commander = require('commander'); | ||
console.log("欢迎来到老谢的脚手架生成工具👏"); | ||
// 利用commander解析命令行输入,必须写在所有内容最后面 | ||
commander.parse(process.argv); | ||
commander | ||
.version(require('./package.json').version) | ||
.option('-v,--version', '查看版本号'); |
{ | ||
"name": "xiexie-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "测试脚手架", | ||
@@ -13,3 +13,6 @@ "main": "index.js", | ||
"xie-cli": "index.js" | ||
}, | ||
"dependencies": { | ||
"commander": "^8.0.0" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
717
9
1
+ Addedcommander@^8.0.0
+ Addedcommander@8.3.0(transitive)