Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 | import { v4 as UUIDv4, v5 as UUIDv5 } from 'uuid'; export function generateUUID(...uuids: string[]): string { const name = uuids.join('-'); const namespace = '5b5b7b9f-6432-4c40-b97b-9bd0abb080cf'; return UUIDv5(name, namespace); } export function generateRandomUUID(): string { return UUIDv4(); } |