UNPKG

label-studio

Version:

Data Labeling Tool that is backend agnostic and can be embedded into your applications

16 lines (12 loc) 224 B
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; }