Bin
2025-12-17 05a69820e0c402b0b33c063d3b922f0a0571cbbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { nanoid } from "nanoid";
 
/**
 * Unique hash generator
 * @param {number} lgth
 */
export function guidGenerator(lgth) {
  let uniqueID = nanoid(10);
 
  if (lgth) {
    uniqueID = nanoid(lgth);
  }
 
  return uniqueID;
}