export function camelToDash(str: string) { return str.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase(); }