Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xdg/vendor/types/deno.d.ts>Blob

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
class Blob
import { Blob } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";

A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

Constructors

new
Blob(blobParts?: BlobPart[], options?: BlobPropertyBag)

Properties

readonly
size: number
readonly
type: string

Methods

arrayBuffer(): Promise<ArrayBuffer>
slice(
start?: number,
end?: number,
contentType?: string,
): Blob
text(): Promise<string>