UNPKG

@file-cache/core

Version:

A cache for file metadata or file content.

6 lines (4 loc) 168 B
import crypto, { BinaryLike } from "crypto"; export const md5 = (buffer: BinaryLike): string => { return crypto.createHash("md5").update(buffer).digest("hex"); };