Binato/server/util/shortUUID.js
2021-09-03 21:09:55 +01:00

5 lines
No EOL
113 B
JavaScript

const uuid = require("uuid").v4;
module.exports = function() {
return uuid().split("-").slice(0, 2).join("");
}