Skip to content

这是一个应用程序国际化助手,可以帮助你在 json 和 excel 之间完成文件类型转换。This is an internationalization helper that helps you convert the files you want to internationalize between Json and Excel.

PsChina/convert-excel-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

English

这是一个应用程序国际化助手,可以帮助你在 json 和 excel 之间完成文件类型转换。

使用 npm 安装

npm install convert-excel-js -g

使用 yarn 安装

yarn global add convert-excel-js

如何使用

将 json 转换为 excel 。

excel [filePath] [fileName]

excel ./filename.json
# excel ./filename.json appText

将 excel 转换为 json 。

json [filePath] [sheetName] [keyColumn] [valueColumn] [fileName]

json ./filename.xlsx 工作表1 A B
# json ./filename.xlsx 工作表1 A B fileName.js

添加时间戳

如果你希望生成文件时记录时间,只需在文件名中插入_time_即可,例如:

将 json 转换为 excel 。

excel [filePath] [fileName]

excel ./filename.json appText._time_.json

将 excel 转换为 json 。

json [filePath] [sheetName] [keyColumn] [valueColumn] [fileName]

json ./filename.xlsx 工作表1 A B fileName._time_.js

About

这是一个应用程序国际化助手,可以帮助你在 json 和 excel 之间完成文件类型转换。This is an internationalization helper that helps you convert the files you want to internationalize between Json and Excel.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published