mirror of
https://github.com/tiennm99/MTTools.git
synced 2026-10-05 01:01:19 +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()
|
|
})
|
|
})
|
|
}
|