MCPcopy
hub / github.com/claude-code-best/claude-code / hashPastedText

Function hashPastedText

src/utils/pasteStore.ts:21–23  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

19 * Exported so callers can get the hash synchronously before async storage.
20 */
21export function hashPastedText(content: string): string {
22 return createHash('sha256').update(content).digest('hex').slice(0, 16)
23}
24
25/**
26 * Get the file path for a paste by its content hash.

Callers 1

addToPromptHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected