* Returns the md5 hash of provided args. * * @param {...(string|Buffer)} args * @return {string}
(...args)
| 78 | * @return {string} |
| 79 | */ |
| 80 | function md5(...args) { |
| 81 | const hash = crypto.createHash('md5'); |
| 82 | for (const a of args) { |
| 83 | hash.update(a); |
| 84 | } |
| 85 | return hash.digest('hex'); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @typedef {{hash: string, contents: string}} ReadResult |
no test coverage detected