eshare-locale-bin
Advanced tools
Comparing version 1.0.0 to 1.0.1
67
index.js
@@ -1,66 +0,7 @@ | ||
#!/usr/bin/env zx | ||
// const fs = require('fs') | ||
// const { exit } = require('process') | ||
// // const { getJSON } = require('./main') | ||
// // import { getJSON } from './main' | ||
#!/usr/bin/env node | ||
// // console.log(typeof (getJSON)) | ||
const xlsx = require('node-xlsx') | ||
// const xlsx = require('node-xlsx') | ||
// // import xlsx from 'node-xlsx' | ||
const data = xlsx.parse('./lang.xlsx') | ||
// const bear = await question('请输入当前目录你要转换的文件名?') | ||
// try { | ||
// await fs.readFile(`./${bear}`, (err, std) => { | ||
// if (err) { | ||
// console.log(chalk.red(`当前目录下文件不存在!!!`)) | ||
// exit(1) | ||
// } | ||
// console.log(std.toString()) | ||
// const data = xlsx(`./${bear}`) | ||
// console.log(data) | ||
// }) | ||
// } catch (error) { | ||
// console.log(`失败`) | ||
// } | ||
// const { program } = require('commander') | ||
// // 字符串分割为数组的方法 | ||
// function strToArr(value, preValue) { | ||
// return value.split(',') | ||
// } | ||
// program.version(require('./package').version, '-v, --version', 'cli的最新版本'); | ||
// program | ||
// .option('-d, --debug', '调试一下') | ||
// .option('-l, --list <value>', '把字符串分割为数组', strToArr) | ||
// .action((options, command) => { | ||
// console.log(options) | ||
// console.log(command) | ||
// // 进行逻辑处理 | ||
// if (options.debug) { | ||
// console.log("调试成功") | ||
// } | ||
// if (options.list !== undefined) { | ||
// console.log(options.list) | ||
// } | ||
// }); | ||
// // 处理命令行输入的参数 | ||
// program.parse(process.argv); | ||
// console.log("执行成功") | ||
console.log(chalk.blue('eshare-locale-gen')) | ||
console.log(data) |
{ | ||
"name": "eshare-locale-bin", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"bin": { | ||
"eshare-locale-gen": "./index.js" | ||
"locale-bin": "./index.js" | ||
}, | ||
@@ -16,2 +16,3 @@ "author": "leon", | ||
"dependencies": { | ||
"co": "^4.6.0", | ||
"commander": "^7.1.0", | ||
@@ -18,0 +19,0 @@ "node-xlsx": "^0.21.0" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
803166
5
21218
3
4
1