knodeo-reports
Simple report generator
Last updated 5 years ago by assign-it-to-us .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install knodeo-reports 
SYNC missed versions from official npm registry.

knodeo_reports

A library for generating reports in HTML and PDF.

Reports are created using JADE.

Note that this library is still in early development and is subject to significant change.

Use in your own project

npm install knodeo-reports --save

Coffeescript example:


# HTML

reports = require("knode-reports").reportGenerator

# generate an html report from a JADE file

jadeReport = reports.htmlReport.loadTemplate('path/to/jade.jade')

# compile to variable
html = reports.htmlReport..generate(jadeReport)

# compile to file
reports.htmlReport.generateFile "path/to/html.html", jadeReport

# PDF from a generated HTML file

reports.htmlToPdf "path/to/html.html", "path/to/pdf.pdf"



Current Tags

  • 0.2.1                                ...           latest (5 years ago)

3 Versions

  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |