mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-11 02:16:26 +02:00
4 lines
184 B
JavaScript
4 lines
184 B
JavaScript
const { createHash } = require('crypto');
|
|
module.exports.md5 = str => createHash('md5').update(str).digest('hex');
|
|
module.exports.msToMins = ms => Number((ms / 1000 / 60).toFixed(2));
|