UNPKG

@mintlify/scraping

Version:

Scrape documentation frameworks to Mintlify docs

9 lines (8 loc) 214 B
export function checkUrl({ url }: { url: string }): boolean { try { new URL(url); } catch { throw Error(`Invalid link: ${url}\nMake sure the link starts with http:// or https://`); } return true; }