github.com/nektos/act@v0.2.63/pkg/runner/testdata/actions/node16/node_modules/uuid/dist/esm-node/md5.js (about) 1 import crypto from 'crypto'; 2 3 function md5(bytes) { 4 if (Array.isArray(bytes)) { 5 bytes = Buffer.from(bytes); 6 } else if (typeof bytes === 'string') { 7 bytes = Buffer.from(bytes, 'utf8'); 8 } 9 10 return crypto.createHash('md5').update(bytes).digest(); 11 } 12 13 export default md5;