SPB Git
225 B · 9 lines typescript
1import { customAlphabet } from "nanoid";23const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";4const nano = customAlphabet(alphabet, 16);56export function newId(prefix: string): string {7  return `${prefix}_${nano()}`;8}9
Files · 2a7cf6155e9e502e64b57e851361b0f023c492e4
Menu

Theme