SvgUri
A command line utility for creating IE9 compatible Base64 SVG Data URI strings for CSS use.
Installation
npm install -g svguri
Usage
Using the following SVG file:
<?xml version="1.0" encoding="utf-8"?><svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /></svg>
The svguri
command can be used to output an IE9-Safe Data-URI.
svguri example.svg
Output:
/)