UNPKG
funstream
Version:
latest (4.2.0)
4.2.0
4.1.1
4.1.0
4.0.0
3.2.0
3.1.0
3.0.0
2.6.1
2.6.0
2.5.1
2.5.0
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
Funstream gives you iteratorish methods on your streams.
npmjs.com/package/funstream
iarna/funstream
funstream
/
fun-transform.js
13 lines
(11 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
const
Transform
=
require
(
'stream'
).
Transform
const
FunStream
=
require
(
'./fun-stream.js'
)
class
FunTransform
extends
Transform
{
constructor
(
opts
) {
super
({
objectMode
:
true
})
FunTransform
.
funInit
.
call
(
this
, opts) } }
FunStream
.
mixin
(
FunTransform
)
module
.
exports
=
FunTransform