mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
* Adjust typescript types * adjust types * fix types in all helper files * Fix types * Migrate js files to ts files * Refactor to TS files * Rename extentions * Adjust imports * Fix builds * Update lockfile * Fix last typescript migration * Fix entry path @lucide/outline-svg * Fix types * add checkout step * format files * Format files
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
/* eslint-disable import/prefer-default-export */
|
|
/**
|
|
* Converts string to KebabCase
|
|
*
|
|
* @param {string} string
|
|
* @returns {string} A kebabized string
|
|
*/
|
|
export const toKebabCase = (string: string): string =>
|
|
string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|