UNPKG
vkitty
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
hello kitty
github.com/vkitty/vkitty
vkitty/vkitty
vkitty
/
lib
/
pipe.js
17 lines
(16 loc)
•
344 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
Pipe
= {
pipe
(
stream,streams
){
if
(
Pipe
.
_checkIsStream
(stream)){ streams.
push
(stream); }
return
Pipe
; },
_checkIsStream
:
function
(
stream
){
if
(stream.
pipe
|| stream.
readable
){
return
true
; }
else
{
return
false
; } } };
module
.
exports
=
Pipe
;