node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

canvg

node-canvg

A port of canvg, which pareses svg input and renders the result to a canvas. http://code.google.com/p/canvg/

Usage

var canvg = require("canvg");
var Canvas = require("canvas");
 
var canvas = new Canvas();
 
canvg(canvas, '<svg>...</svg>');
 
/* and so on */
 

Todo

The canvg code is pretty much untouched. A lot of browser-specific code has to be removed or rewritten.