MCPcopy Index your code
hub / github.com/CoderLine/alphaTab / getHash

Function getHash

packages/vite/src/bridge/utils.ts:46–52  ·  view source on GitHub ↗
(text: Buffer | string, length = 8)

Source from the content-addressed store, hash-verified

44 * @internal
45 */
46export function getHash(text: Buffer | string, length = 8): string {
47 const h = createHash('sha256').update(text).digest('hex').substring(0, length);
48 if (length <= 64) {
49 return h;
50 }
51 return h.padEnd(length, '_');
52}
53
54// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/shared/utils.ts#L40
55/**

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected