Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969199
pipe-into.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
350 B
Referenced Files
None
Subscribers
None
pipe-into.ts
View Options
import
{
Writable
,
Readable
}
from
"stream"
;
export
default
function
pipeInto
(
fromStream
:
Readable
,
push
:
(
data
:
any
)
=>
void
)
{
let
outStream
=
fromStream
.
pipe
(
new
Writable
({
write
(
data
,
_
,
next
)
{
push
(
data
);
next
(
null
);
},
})
);
return
new
Promise
<
void
>
((
resolve
)
=>
{
outStream
.
on
(
"finish"
,
()
=>
resolve
());
});
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Nov 22, 07:23 (8 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547619
Default Alt Text
pipe-into.ts (350 B)
Attached To
Mode
rSTREAM tempstream
Attached
Detach File
Event Timeline
Log In to Comment