create-coliapp
Version:
Create projects like colidev 🚀. Inspired by 'create-appncy' by @goncy
16 lines (12 loc) • 392 B
text/typescript
import { type ClassValue, clsx } from "clsx";
import slugify from "slugify";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function capitalize(str: string): string {
return str.charAt(0).toUpperCase() + str.slice(1);
}
export function toSlug(str: string): string {
return slugify(str, { lower: true });
}