How to use the @fortawesome/fontawesome-free/sprites/regular.svg.replace function in @fortawesome/fontawesome-free

To help you get started, we’ve selected a few @fortawesome/fontawesome-free examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thomasloven / hass-fontawesome / js / far.js View on Github external
import txt from "@fortawesome/fontawesome-free/sprites/regular.svg"
const iconset = document.createElement("ha-iconset-svg");
iconset.name="far";
iconset.size="1024";
iconset.innerHTML = txt.replace(/\