(now: Date = new Date())
| 1 | import { randomUUID } from 'node:crypto'; |
| 2 | |
| 3 | export function formatLogTimestamp(now: Date = new Date()): string { |
| 4 | return now.toISOString().replace(/[:.]/g, '-'); |
| 5 | } |
| 6 | |
| 7 | export function shortRandomSuffix(): string { |
| 8 | return randomUUID().slice(0, 8); |
no outgoing calls
no test coverage detected