How to use the @fortawesome/fontawesome-free/sprites/brands.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 / fab.js View on Github external
import txt from "@fortawesome/fontawesome-free/sprites/brands.svg"
const iconset = document.createElement("ha-iconset-svg");
iconset.name="fab";
iconset.size="1024";
iconset.innerHTML = txt.replace(/\