Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 471 Bytes

notion-utils.parsepageid.md

File metadata and controls

17 lines (11 loc) · 471 Bytes

Home > notion-utils > parsePageId

parsePageId variable

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