mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-05-14 22:57:47 +00:00
14 lines
231 B
JavaScript
14 lines
231 B
JavaScript
'use strict'
|
|
|
|
var through = require('through2')
|
|
|
|
module.exports.testStream = function () {
|
|
return through(function (buf, enc, cb) {
|
|
var that = this
|
|
setImmediate(function () {
|
|
that.push(buf)
|
|
cb()
|
|
})
|
|
})
|
|
}
|