mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-24 01:24:28 +01:00
19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
import { clsx, type ClassValue } from 'clsx';
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function snakeToTitleCase(snake: string): string {
|
|
return snake
|
|
.split('_')
|
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
.join(' ');
|
|
}
|
|
|
|
export function patchConsoleLogging() {
|
|
// Intercept console methods
|
|
return;
|
|
}
|