1.0.10 • Published 4 years ago

@gswl/exceljson v1.0.10

Weekly downloads
14
License
ISC
Repository
-
Last release
4 years ago

exceljson

安装

npm i -g @gswl/exceljson

必须有 4 个参数或者只有 2 个参数并在目录里有默认的文件

json 转 xlsx:

exceljson xlsx ./data.json data.xlsx ./schema.json

exceljson xlsx // 当前目录下有 schema.json data.json 时

xlsx 转 json:

exceljson json ./data.xlsx out.json ./schema.json

exceljson json // 当前目录下有 schema.json data.xlsx 时

无参数时会用命令运行目录的默认值

本地的 schema.json 可以不存在,但不存在时如果 object 里有用纯数字当 key 值的,会被当成数组处理。

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.1

4 years ago