svg
Create svg elements from a stringExample
var svg = require("svg")
var text = "<rect fill='blue' height='50' width='50'>"
var elem = svg(text)
Installation
npm install svg
var svg = require("svg")
var text = "<rect fill='blue' height='50' width='50'>"
var elem = svg(text)
npm install svg
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.