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

Function simpleHash

src/utils/sessionStoragePortable.ts:293–295  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

291export const MAX_SANITIZED_LENGTH = 200
292
293function simpleHash(str: string): string {
294 return Math.abs(djb2Hash(str)).toString(36)
295}
296
297/**
298 * Makes a string safe for use as a directory or file name.

Callers 1

sanitizePathFunction · 0.85

Calls 2

djb2HashFunction · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected