Skip to main content
Module

x/deno/js/dom_types.ts>Blob

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Blob
import { type Blob } from "https://deno.land/x/deno@v0.1.12/js/dom_types.ts";

A blob object represents a file-like object of immutable, raw data.

Properties

readonly
size: number

The size, in bytes, of the data contained in the Blob object.

readonly
type: string

A string indicating the media type of the data contained in the Blob. If the type is unknown, this string is empty.

Methods

slice(
start?: number,
end?: number,
contentType?: string,
): Blob

Returns a new Blob object containing the data in the specified range of bytes of the source Blob.