Die Blob Klasse bietet eine Reihe von Methoden zum Konsumieren ihres Inhalts in verschiedenen Formaten, einschließlich .text().
ts
const blob = new Blob(["hello world"]);
const str = await blob.text();
// => "hello world"Siehe Docs > API > Binärdaten für vollständige Dokumentation zur Manipulation von Binärdaten mit Bun.