MCPcopy
hub / github.com/facebook/docusaurus / md5Hash

Function md5Hash

packages/docusaurus-utils/src/hashUtils.ts:13–15  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

11
12/** Thin wrapper around `crypto.createHash("md5")`. */
13export function md5Hash(str: string): string {
14 return createHash('md5').update(str).digest('hex');
15}
16
17/** Creates an MD5 hash and truncates it to the given length. */
18export function simpleHash(str: string, length: number): string {

Callers 2

getCacheVersionFunction · 0.90
simpleHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…