Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 674 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 674 Bytes

SVG Render Mask | Portable SVG Mask Rendering

This library is in beta, but being used by the Universal Data Tool. Contributions are appreciated!

Render SVGs on node and web. Uses node-pureimage and canvg.

Existing libraries often had problems with serverless platforms, inconsistency across machines, forced anti-aliasing or unnecessary complexity.

Usage

npm install svg-render

const render = require("svg-render")

render(svgText, { output: "pngbuffer" }).then((pngBuffer) => {
  // fs.writeFile("./myImage.png", pngBuffer)
})

TODO

  • [] Font Support