Skip to content

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

Funkcja: toExportName() ​

toExportName(slug): string

Beta

Konwertuj slug ("github-actions") na nazwę eksportu Simple Icons ("siGithubActions").

Parametry ​

slug ​

string

Zwraca ​

string

Przykład ​

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

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