export function toSnakeCase(str: string): string { return str .replace(/([A-Z])/g, "_$1") .toLowerCase() .replace(/^_/, "") .replace(/-/g, "_"); }