1import { customAlphabet } from "nanoid";23const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";4const nano = customAlphabet(alphabet, 16);56export function newId(prefix: string): string {7 return `${prefix}_${nano()}`;8}9
65272fd1529126e3aec4c2201c11377573fb5887