Page MenuHomeSealhub

tostring.ts
No OneTemporary

tostring.ts

import { Readable } from "stream";
export default async function streamToString(
stream: Readable
): Promise<string> {
return new Promise((resolve) => {
let data = "";
stream.on("data", (newdata) => {
data += newdata.toString();
});
stream.on("end", () => resolve(data));
}) as Promise<string>;
}

File Metadata

Mime Type
text/x-java
Expires
Sat, Nov 23, 07:02 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547911
Default Alt Text
tostring.ts (312 B)

Event Timeline