10 行
195 B
JavaScript
10 行
195 B
JavaScript
|
'use strict';
|
||
|
const { createHash } = require('crypto');
|
||
|
|
||
|
module.exports = env => {
|
||
|
const hash = createHash('md5');
|
||
|
hash.update(JSON.stringify(env));
|
||
|
|
||
|
return hash.digest('hex');
|
||
|
};
|