Skip to content

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

تابع: toExportName() ​

toExportName(slug): string

بتا

یک اسلاگ ("github-actions") را به نام خروجی Simple Icons ("siGithubActions") تبدیل کنید.

پارامترها ​

slug ​

string

مقدار بازگشتی ​

string

نمونه ​

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

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