Skip to content

computeOgHash

Hashes a card’s content, so an unchanged card is not rendered again.

Import:

import { computeOgHash } from '@mnaoumov/typescript-dev-toolkit/docs-site/og-image';

Signature:

function computeOgHash(params: OgCardContent): string

Parameters:

Parameter Type Description
params OgCardContent The card’s content.

Returns: string — A 16-character hex digest.