Skip to content

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

Fonction: toExportName() ​

toExportName(slug): string

Bêta

Convertir un slug ("github-actions") en son nom d'exportation Simple Icons ("siGithubActions").

Paramètres ​

slug ​

string

Retourne ​

string

Exemple ​

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

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