Home > notion-utils > parsePageId
Robustly extracts the notion page ID from a notion URL or pathname suffix.
Defaults to returning a UUID (with dashes).
Signature:
parsePageId: (id?: string | null, { uuid }?: {
uuid?: boolean;
}) => string
Home > notion-utils > parsePageId
Robustly extracts the notion page ID from a notion URL or pathname suffix.
Defaults to returning a UUID (with dashes).
Signature:
parsePageId: (id?: string | null, { uuid }?: {
uuid?: boolean;
}) => string