Skip to content

pantoken / plugins/pantoken/simple-icons/src / toExportName

Funktion: toExportName()

toExportName(slug): string

Beta

Konverter en slug ("github-actions") til dens Simple Icons eksportnavn ("siGithubActions").

Parametre

slug

string

Returnerer

string

Eksempel

ts
import { toExportName } from "@pantoken/plugin-simple-icons";

toExportName("github"); // "siGithub"
toExportName("github-actions"); // "siGithubActions"