mirror of
https://github.com/mvvasilev/paste-eater.git
synced 2025-04-19 21:39:52 +03:00
9 lines
186 B
JavaScript
9 lines
186 B
JavaScript
'use strict';
|
|
const { createHash } = require('crypto');
|
|
|
|
module.exports = env => {
|
|
const hash = createHash('md5');
|
|
hash.update(JSON.stringify(env));
|
|
|
|
return hash.digest('hex');
|
|
};
|