报告生成器 — 数据报告
从数据自动生成结构化报告。支持多种模板(周报/月报/分析报告),输出 Markdown 或 HTML 格式。
report-generator
 

report-generator encapsulates the task of creating simple html reports.
##quick example
var reportGenerator = require('report-generator');
var generator new reportGenerator('report.html', ['col1', 'col2'], function (err) {
assert(err === null);
});
// write a simple row
generator.writeRow(['cell1', 'cell2'], function (err) {
assert(err === null);
});
// write a row using a cell object, with color support
var cells = [
{cellContent: '1', color: "red"},
{cellContent: '2', color: "red"}
];
var row = [cells];
generator.writeRows(row, function (err) {
assert(err === null);
done();
});
generator.closeReport(function(err){
assert(err === null);
});
安装
# 安装到当前项目
npx skills add report-generator
# 全局安装
npx skills add report-generator -g
来源
- 作者:
nathan boyd - 仓库:https://github.com/nathan-boyd/report-generator
- npm 包:
report-generator
安装指南
复制下方命令,在终端运行即可安装:
npx skills add report-generator
npx skills add report-generator -g
需已安装 GenHub 桌面端
使用指南
安装完成后,在对话框中直接使用此技能。
评论已关闭。