MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / hashContent

Method hashContent

frontend/src/cache.ts:296–298  ·  view source on GitHub ↗

* Hash content (raw)

(content: string)

Source from the content-addressed store, hash-verified

294 * Hash content (raw)
295 */
296 private hashContent(content: string): string {
297 return crypto.createHash('sha256').update(content).digest('hex');
298 }
299
300 /**
301 * Hash content using AST-aware method (ignores comments, whitespace)

Callers 1

hashContentASTMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected