Skip to content

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

Funksjon: toExportName()

toExportName(slug): string

Beta

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

Parametere

slug

string

Returnerer

string

Eksempel

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

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