Skip to content

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

Funktion: toExportName() ​

toExportName(slug): string

Beta

Konvertiere einen Slug ("github-actions") in seinen Simple Icons-Exportnamen ("siGithubActions").

Parameter ​

slug ​

string

Rückgabe ​

string

Beispiel ​

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

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