createEnvironmentHash.js 186 B

123456789
  1. 'use strict';
  2. const { createHash } = require('crypto');
  3. module.exports = env => {
  4. const hash = createHash('md5');
  5. hash.update(JSON.stringify(env));
  6. return hash.digest('hex');
  7. };