rendersvg
v0.1.0
Published
Renders SVGs to PNG, GIF, JPEG, or PDF using PhantomJS
Downloads
6
Maintainers
Readme
rendersvg for Node.js
Renders SVGs using PhantomJS.
var rendersvg = require('rendersvg');
instream.pipe(rendersvg.renderStream([ext = 'png'])).pipe(outstream)
// or
rendersvg.convert(inbuffer, [ext = 'png'], function (err, outbuf) {
// ...
})
Possible extensions:
- png
- gif
- jpg
Requirements
OS X: brew install phantomjs
License
MIT.