svg

Create svg elements from a string

Usage no npm install needed!

<script type="module">
  import svg from 'https://cdn.skypack.dev/svg';
</script>

README

svg

Create svg elements from a string

Example

var svg = require("svg")

var text = "<rect fill='blue' height='50' width='50'>"
var elem = svg(text)

Installation

npm install svg

Contributors

  • Raynos

MIT Licenced