(content: string)
| 8 | * @returns Hash string in format 'sha256:{hex}' |
| 9 | */ |
| 10 | export function computeContentHash(content: string): string { |
| 11 | const hash = createHash('sha256').update(content, 'utf-8').digest('hex') |
| 12 | return `sha256:${hash}` |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Computes a snapshot hash from the file's key properties. |
no outgoing calls
no test coverage detected