Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969605
tostring.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
312 B
Referenced Files
None
Subscribers
None
tostring.ts
View Options
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
Details
Attached
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)
Attached To
Mode
rSTREAM tempstream
Attached
Detach File
Event Timeline
Log In to Comment