MCPcopy
hub / github.com/colbymchenry/codegraph / hashContent

Function hashContent

src/extraction/index.ts:108–110  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

106 * Calculate SHA256 hash of file contents
107 */
108export function hashContent(content: string): string {
109 return crypto.createHash('sha256').update(content).digest('hex');
110}
111
112/**
113 * Skip files larger than this (bytes). Generated bundles, minified JS, and

Callers 3

storeExtractionResultMethod · 0.85
syncMethod · 0.85
getChangedFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected