@strapi/generate-new
Version:
Generate a new Strapi application.
15 lines (14 loc) • 362 B
JavaScript
;
const crypto = require("crypto");
const nodeMachineId = require("node-machine-id");
const machineID = () => {
try {
const deviceId = nodeMachineId.machineIdSync();
return deviceId;
} catch (error) {
const deviceId = crypto.randomUUID();
return deviceId;
}
};
module.exports = machineID;
//# sourceMappingURL=machine-id.js.map