UNPKG

@xins/devtool

Version:

官方·前端二次开发脚手架库

10 lines (7 loc) 186 B
'use strict'; const { createHash } = require('crypto'); module.exports = env => { const hash = createHash('md5'); hash.update(JSON.stringify(env)); return hash.digest('hex'); };