9 lines
172 B
JavaScript
9 lines
172 B
JavaScript
|
const { createHash } = require('crypto');
|
||
|
|
||
|
module.exports = env => {
|
||
|
const hash = createHash('md5');
|
||
|
hash.update(JSON.stringify(env));
|
||
|
|
||
|
return hash.digest('hex');
|
||
|
};
|