Skip to main content

getBlobFromUrl

A function that takes a URL string, makes a fetch request to that URL, and returns the response Response object converted to a Blob object.


Code

🔗 View source code


Interface

typescript
const getBlobFromUrl: (url: string) => Promise<Blob>

Usage

typescript
import { getBlobFromUrl } from '@modern-kit/utils';

getBlobFromUrl("URL");