0.2.2 • Published 10 years ago

paint-svg v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

paint-svg

Create a svg in node

Example

var paintSvg = require('./index.js')

var name = 'paint-svg';
paintSvg(
  name,
  "width='200' height='200'",
  ' <circle fill="#232021" cx="100" cy="100" r="88"/>\
    <text transform="matrix(1 0 0 1 49.5848 89.9571)">\
      <tspan x="0" y="0" fill="#FFFFFF" font-family="Baskerville" font-size="34">PAINT</tspan>\
      <tspan x="0" y="40" fill="#FFFFFF" font-family="Baskerville-Bold" font-size="50">SVG</tspan>\
    </text>',
  console.log("Created " + name)
);

Installation

npm install paint-svg

MIT Licenced

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago