Blob

Interfacein globals@fastly/js-compute 4.0.0View source

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.

MDN Reference

Constructor

new Blob(blobParts?: Array<BlobPart>, options?: BlobPropertyBag)

Parameters

blobParts: Array<BlobPart>optional
options: BlobPropertyBagoptional

Properties

size

numberread-onlyView source

type

stringread-onlyView source

Methods

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

Parameters

start: numberoptional
end: numberoptional
contentType: stringoptional

Returns

text(): Promise<string>

Returns

Promise<string>