New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xiexie-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xiexie-cli - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

index.js
#!/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', '查看版本号');

5

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc