Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12654054
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
Fri, Nov 28, 14:49 (2 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1066058
Default Alt Text
tostring.ts (312 B)
Attached To
Mode
rSTREAM tempstream
Attached
Detach File
Event Timeline
Log In to Comment