Skip to content

lzy1960/json2xlsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2xlsx

使用 sheetjs,文档:https://docs.sheetjs.com/docs/getting-started/installation/nodejs

📊 示例

👇👇 将 json 数据 👇👇

[
  { "name": "张三", "age": 18 },
  { "name": "李四", "age": 20 }
]

👇👇 转换为 Excel 文件,格式如下 👇👇

name age
张三 18
李四 20

✨ 安装

pnpm i

💨 运行

  1. 生成测试数据
  pnpm init:data
  1. 将 json 数据转换为 excel
  pnpm build

🏗️ 产物

output.xlsx

About

A tool of converting json to excel format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published