Blob.prototype.textSync

Returns a string containing the entire contents of the blob as text.

The blob contents is decoded from UTF-8.

Note

This is a non-standard method specific to Calcish.

Syntax

textSync()

Return value

A string.

If the contents of blob doesn’t fit in a string, throws a RangeError.

Example

let blob = new Blob(['Hello, world!'])
blob.textSync()
"Hello, world!"

See also