Initial commit

This commit is contained in:
2026-08-30 15:23:57 +02:00
commit dab5679098
1293 changed files with 240952 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/*
! /services/idGenerator.js
= Central Unique ID-Generator
? This module will create unique ids using crypto
*/
// % import nodejs dependencies
import crypto from 'crypto';
// $ create a new unique id
export function generate() { return crypto.randomBytes(32).toString('hex'); } // simple id generator
export function generatePrefixed(prefix) { return `${prefix}_${generate()}`; } // prefixed id generator