Skip to content

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

Función: toExportName()

toExportName(slug): string

Beta

Convertir un slug ("github-actions") a su nombre de exportación de Simple Icons ("siGithubActions").

Parámetros

slug

string

Devuelve

string

Ejemplo

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

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