Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xiakebot

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xiakebot - npm Package Compare versions

Comparing version 1.0.27 to 1.0.28

16

cli.js
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const package_info = require("./package.json");
console.log('谢邀,人在美国,刚下飞机。');
const program = new commander_1.Command();
program
.name(package_info.name)
.option('-c, --config', "根据模板生成配置文件")
.option('-d, --debug', '输出调试信息')
.option('-g, --gen', "生成API模板")
.option('-p, --publish', "发布项目")
.option('-u, --upload', "上传更新文件")
.option('-u2, --upload2', "上传更新文件2(shouyufilestore)")
.option('-s, --sync-model', '同步ORM数据库模型(施工中)')
.helpOption('-h, --help', "获取帮助信息")
.version(package_info.version, "-v, --version", "获取版本信息");
program.parse(process.argv);
//# sourceMappingURL=cli.js.map
#!/usr/bin/env node
import {Command} from "commander"
const package_info = require("./package.json");
console.log('谢邀,人在美国,刚下飞机。');
const program = new Command();
//设定参数
program
.name(package_info.name)
.option('-c, --config', "根据模板生成配置文件")
.option('-d, --debug', '输出调试信息')
.option('-g, --gen', "生成API模板")
.option('-p, --publish', "发布项目")
.option('-u, --upload', "上传更新文件")
.option('-u2, --upload2', "上传更新文件2(shouyufilestore)")
.option('-s, --sync-model', '同步ORM数据库模型(施工中)')
.helpOption('-h, --help', "获取帮助信息")
.version(package_info.version, "-v, --version", "获取版本信息")
// .option('-h, --help',"显示帮助命令")
//解析传入参数
program.parse(process.argv);

9

package.json
{
"name": "xiakebot",
"version": "1.0.27",
"version": "1.0.28",
"description": "xiakebot",

@@ -13,3 +13,8 @@ "main": "index.js",

"author": "",
"license": "ISC"
"license": "ISC",
"dependencies": {
"@types/commander": "^2.12.2",
"@types/node": "^15.0.3",
"commander": "^7.2.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