json-excel-cli
Advanced tools
Comparing version 1.0.9 to 1.0.10
#!/usr/bin/env node | ||
const program = require("commander"); | ||
// const inquirer = require("inquirer"); | ||
const minimist = require("minimist"); | ||
@@ -11,4 +10,2 @@ const chalk = require("chalk"); | ||
var appInfo = require(path.resolve(__dirname, "../package.json")); | ||
// var inquireTipConfig = require("../packages/lib/inquire-tip-config.js"); | ||
// let configTemp = {}; | ||
program | ||
@@ -117,49 +114,1 @@ .version(appInfo.version, "-v, --version") | ||
} | ||
// Commands 操作 | ||
// program | ||
// // 命令与参数: <> 必填; [] 选填 | ||
// .command("exec <cmd> [env] [env]") | ||
// // 别名 | ||
// .alias("ex") | ||
// // 帮助信息 | ||
// .description("execute the given remote cmd") | ||
// // 执行的操作 | ||
// .action((cmd, env, options) => { | ||
// // 参数可以拿到 | ||
// console.log(`env is ${env}`, process.argv); | ||
// console.log('exec "%s" using %s mode', cmd, options.exec_mode); | ||
// }) | ||
// .parse(process.argv); | ||
/** | ||
* @description 交互命令操作 | ||
* @author chendq | ||
* @date 2020-03-15 | ||
*/ | ||
// inquirer.prompt(inquireTipConfig.type).then(function(args) { | ||
// assignConfig(args); | ||
// if (configTemp.operateType === 1) { | ||
// json2excelInit(); | ||
// } else { | ||
// excel2jsonInit(); | ||
// } | ||
// }); | ||
/* function excel2jsonInit() { | ||
inquirer.prompt(inquireTipConfig.excel2jsonInit).then(function(args) { | ||
assignConfig(args, true); | ||
}); | ||
} | ||
//json转换生成excel | ||
function json2excelInit() { | ||
inquirer.prompt(inquireTipConfig.json2excelInit).then(function(args) { | ||
assignConfig(args, true); | ||
}); | ||
} | ||
function assignConfig(args, last) { | ||
configTemp = Object.assign(configTemp, args); | ||
console.log("configTemp: ", configTemp); | ||
if (last) { | ||
createrFn(); | ||
} | ||
} | ||
*/ |
{ | ||
"name": "json-excel-cli", | ||
"version": "1.0.9", | ||
"description": "Support multi-language file and Chinese-English comparison table excel file conversion", | ||
"version": "1.0.10", | ||
"description": "🦅 Support multi-language file and Chinese-English comparison table excel file conversion", | ||
"main": "index.js", | ||
@@ -41,3 +41,2 @@ "bin": { | ||
"commander": "^5.0.0", | ||
"inquirer": "^7.1.0", | ||
"minimist": "^1.2.5", | ||
@@ -44,0 +43,0 @@ "ora": "^4.0.3", |
5
17053
8
292
- Removedinquirer@^7.1.0
- Removedansi-escapes@4.3.2(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchardet@0.7.0(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedexternal-editor@3.1.0(transitive)
- Removedfigures@3.2.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinquirer@7.3.3(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtmp@0.0.33(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtype-fest@0.21.3(transitive)