canvg

A port of canvg, which parses svg input and renders the result to a canvas.

node-canvg

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

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

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