MCPcopy Index your code
hub / github.com/rtfpessoa/diff2html / getHtmlId

Function getHtmlId

src/render-utils.ts:210–212  ·  view source on GitHub ↗
(file: DiffFileName)

Source from the content-addressed store, hash-verified

208 * Generates a unique string numerical identifier based on the names of the file diff
209 */
210export function getHtmlId(file: DiffFileName): string {
211 return `d2h-${hashCode(filenameDiff(file)).toString().slice(-6)}`;
212}
213
214/**
215 * Selects the correct icon name for the file

Callers 1

Calls 2

hashCodeFunction · 0.90
filenameDiffFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…