Skip to content

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

Funksjon: toExportName() ​

toExportName(slug): string

Beta

Konverter ein slug ("github-actions") til Simple Icons-eksportnamnet ("siGithubActions").

Parametrar ​

slug ​

string

Returnerer ​

string

Døme ​

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

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