MCPcopy Index your code
hub / github.com/codeaashu/claude-code / simpleHash

Function simpleHash

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

Source from the content-addressed store, hash-verified

293export const MAX_SANITIZED_LENGTH = 200
294
295function simpleHash(str: string): string {
296 return Math.abs(djb2Hash(str)).toString(36)
297}
298
299/**
300 * 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