UNPKG

histoire

Version:

A fast story book powered by Vite

6 lines (5 loc) • 220 B
import { createHash } from 'node:crypto'; /** Hashes exact complete UTF-8 text without any page normalization. */ export function hashContent(text) { return createHash('sha256').update(text, 'utf8').digest('hex'); }