svg-to-html

🚀 Utility script to convert a folder of svg files to html files (incl. extra attributes)

GPL-3.0 License

Stars
5

svg-to-html

Utility script to convert a folder of svg files to html files (incl. extra attributes).

Run the script

  1. Place your .svg files in the /svgs folder.
  2. Run node script.js
  3. Profit

In addition to a folder of .html svgs, you get a nice js file with LWC based imports.


Example svgs thanks to tabler-icons