Skip to content

hashContent()

PromptScript API


hashContent(content): string

Defined in: resolver/src/reference-hasher.ts:9

Compute SHA-256 hash of in-memory content. Returns SRI-format string: “sha256-”

Parameters

content

Buffer

Returns

string