DOM & browser
Helpers that touch the DOM, the browser navigation, downloads or the View Transitions API. They all expect a browser environment.
Downloads
downloadBlob— downloads aBlobas a file.downloadString— downloads a string as a file with a custom MIME type.downloadUrl— downloads from anhttp(s):orblob:URL.
Navigation & view
openUrl— navigates to a URL, breaking out of an iframe when needed.printHtml— prints arbitrary HTML through a hidden iframe.viewTransition— wraps the View Transitions API with a graceful fallback.
Predicates
isHtmlElement— type-guardinginstanceof HTMLElementcheck that is safe in non-browser environments.