datapackage-render
v0.2.0
Published
Render data packages and their views to various formats including HTML in both Node and the browser.
Readme
Render data packages and their views to various formats including HTML in both Node and the browser.
Install
npm install datapackage-renderInstall with comamnd line tool:
npm install -g datapackage-renderIf 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-canvasUsage
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>
