Open this example in the interactive library
Source code
const blob = new Blob(["hello", " world"], { type: "text/plain" });
console.log(blob.size, await blob.text());
Sample output
11 hello world

Open this example in the interactive library
const blob = new Blob(["hello", " world"], { type: "text/plain" });
console.log(blob.size, await blob.text());
11 hello world