Use the uuid package to generate a UUID
Use the uuid package to generate a UUID const uuid = require('uuid'); /** * @returns {string} UUID */ module.exports = async () => { const UUID = await uuid.v1(); console.log(UUID); return UUID; };