Fetch
Wrappers around the fetch function.
f
fetch_html(html_url: string): Promise<jsdom.JSDOM>
Fetch an HTML file via [[fetch_resource]] and parse the result into a DOM instance.
f
fetch_json(json_url: string): Promise<any>
Fetch an JSON file via [[fetch_resource]] and parse the result into an object.
f
f
fetch_type(resource_url: string): Promise<string>
Fetch the media type of the resource.
Usage
import * as mod from "lib/fetch.ts";