(content: string)
| 21 | * Exported so callers can get the hash synchronously before async storage. |
| 22 | */ |
| 23 | export function hashPastedText(content: string): string { |
| 24 | return createHash('sha256').update(content).digest('hex').slice(0, 16) |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Get the file path for a paste by its content hash. |
no outgoing calls
no test coverage detected