Skip to content

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

Funktion: toExportName()

toExportName(slug): string

Beta

Konvertera en slug ("github-actions") till dess Simple Icons-exportnamn ("siGithubActions").

Parametrar

slug

string

Returnerar

string

Exempel

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

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