2025-05-22 16:23:08 +08:00

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()
})
})
}