0.2.0 • Published 10 years ago

datapackage-render v0.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

Render data packages and their views to various formats including HTML in both Node and the browser.

Install

NPM

npm install datapackage-render

Install with comamnd line tool:

npm install -g datapackage-render

If you want PNG rendering you will need to install node-canvas which in turn requires additional dependencies outside of node such as Cairo (see https://github.com/Automattic/node-canvas#installation):

npm install node-canvas

Usage

Library

var render = require('datapackage-render');

render.html('path-to-datapackage', function(error, html) {
  console.log(html);
});

## Command Line

dprender html <path-to-data-package>