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