import { readAsBlob } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/reader.js";
Reads all data from the given source to a Blob
.
Examples
Example 1
Example 1
import { readAsBlob } from "@ayonli/jsext/reader";
import { createReadableStream } from "@ayonli/jsext/fs";
const stream = createReadableStream("./package.json");
const blob = await readAsBlob(stream, "application/json");