UNPKG

elm-review

Version:
16 lines (13 loc) 239 B
const crypto = require('node:crypto'); /** * Hash a string. * * @param {string} content * @returns {string} */ function hash(content) { return crypto.createHash('md5').update(content).digest('hex'); } module.exports = { hash };