添加base62编码工具

This commit is contained in:
2025-05-18 14:29:50 +08:00
parent 44594bf1b1
commit bd0cba2526

View File

@@ -1,6 +1,9 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
import basex from "base-x"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const base62 = basex('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');