@iconify/utils
Version:
Common functions for working with Iconify icon sets used by various packages.
19 lines (17 loc) • 436 B
text/typescript
/**
* Convert string to camelCase
*/
declare function camelize(str: string): string;
/**
* Convert string to PascaleCase
*/
declare function pascalize(str: string): string;
/**
* Convert camelCase string to kebab-case
*/
declare function camelToKebab(key: string): string;
/**
* Convert camelCase string to snake-case
*/
declare function snakelize(str: string): string;
export { camelToKebab, camelize, pascalize, snakelize };