UNPKG

tk-eui-plus

Version:

12 lines (11 loc) 366 B
const n = (x) => x.replace(/(A-Z)g/, "-$1"), a = () => { var x = (/* @__PURE__ */ new Date()).getTime(), e = "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(t) { var r = (x + Math.random() * 16) % 16 | 0; return x = Math.floor(x / 16), (t == "x" ? r : r & 3 | 8).toString(16); }); return e; }; export { a as createGuid, n as toLine };