dsh-markdown-table
其他 活跃维护

dsh-markdown-table

uckkk/dsh-markdown-table

轻量级转换工具,可将JSON数组、二维数组一键转为标准Markdown表格,自动适配列宽与对齐规则,支持自定义分隔符,无外部依赖易集成。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-markdown-table
git clone https://github.com/uckkk/dsh-markdown-table.git
git clone git@github.com:uckkk/dsh-markdown-table.git
README.md main

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}])

安装

dsh plugin add github:uckkk/dsh-markdown-table

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-markdown-table

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。