funstream
Version:
Funstream gives you iteratorish methods on your streams.
12 lines (11 loc) • 318 B
JavaScript
const PassThrough = require('stream').PassThrough
const FunStream = require('./fun-stream.js')
class FunPassThrough extends PassThrough {
constructor (opts) {
super({objectMode: true})
FunPassThrough.funInit.call(this, opts)
}
}
FunStream.mixin(FunPassThrough)
module.exports = FunPassThrough