CH4ACKO3/dsh-render-engine--packages-table-render ↗★ 1
@ch4acko3/dsh-table-render
提供安全且响应式的语义化表格渲染服务 适合需要将复杂数据集或键值对渲染为无障碍表格的开发任务。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CH4ACKO3/dsh-render-engine#cca409bdfbcdb58e20267f970744d9b2918d218a&path:packages/table-render說明文件
閱讀完整 README ↗@ch4acko3/dsh-table-render
Safe, responsive semantic table rendering for DeepSeek Harness Web plugins.
export const inject = ['tableRenderer']
export function apply(ctx) {
const result = ctx.tableRenderer.render({
caption: 'Package status',
rows: [
{ package: 'markdown', status: 'ready', tests: 7 },
{ package: 'mermaid', status: 'ready', tests: 2 },
],
})
console.log(result.html)
}
Column order is inferred from the first appearance of each record key, or can be supplied explicitly with labels and alignment. Missing values, nulls, booleans, finite numbers, strings, and empty datasets receive distinct, accessible output.