Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22397608
tostring.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
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
application/javascript
Expires
Fri, Nov 27, 17:13 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1215799
Default Alt Text
tostring.ts (312 B)
Attached To
Mode
rSTREAM tempstream
Attached
Detach File
Event Timeline