dsh-markdown-table
Verifieddsh-markdown-table · v0.1.0 · MIT
Markdown 表格生成:把 JSON 数组/二维数组转换为 Markdown 表格
Install
dsh plugin add dsh-markdown-table Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Readme
dsh-markdown-table · Markdown 表格生成
把 JSON 数组 / 二维数组转换为 Markdown 表格。纯 Node 实现。
提供的工具
| 工具 | 作用 |
|---|---|
make_table |
JSON → Markdown 表格 |
安装
dsh plugin add dsh-markdown-table
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-markdown-table"。
用法示例
把这组数据整理成 Markdown 表格
→ 调用 make_table(data=[{name:"a",value:1},{name:"b",value:2}])