method IContentFetcher.fetch
IContentFetcher.fetch(source: string): Promise<string>

Fetches content from a source.

Parameters

source: string
  • URL or source identifier

Return Type

Promise<string>

The content as a string

Throws

Error if the content cannot be fetched

Usage

import { type IContentFetcher } from ".";