UNPKG

tezx

Version:

TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an

9 lines (8 loc) 307 B
export function generateID() { const timestamp = Date.now().toString(16); const random = Math.floor(Math.random() * 0xffffffffffff) .toString(16) .padStart(12, "0"); const pid = (process.pid % 0x10000).toString(16).padStart(4, "0"); return `${timestamp}-${random}-${pid}`; }