Skip to content

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

Functie: toExportName()

toExportName(slug): string

Bèta

Zet een slug ("github-actions") om naar de Simple Icons-exportnaam ("siGithubActions").

Parameters

slug

string

Retourneert

string

Voorbeeld

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

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