Back to catalog

uckkk /

dsh-json-csv

Verified

CSV ↔ JSON 转换

0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@f927ef4f

dsh-json-csv · CSV ↔ JSON 转换

JSON 对象数组 ↔ CSV 互转,支持表头与引号转义。纯 Node 实现。

提供的工具

工具 作用
json_to_csv JSON 数组 → CSV
csv_to_json CSV → JSON 数组

安装

dsh plugin add dsh-json-csv

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-json-csv"

用法示例

把这组数据导出成 CSV
→ 调用 json_to_csv(data=[{a:1,b:2},{a:3,b:4}])
/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.