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

eshare-locale-bin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eshare-locale-bin - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lang.xlsx

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"

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