Files
memecoin-botV2/.pnpm-store/v10/files/a9/5e6f8a953f7c51ccefa060ab6e8b67c9e7db5516278dfc6e91f29d74edd23f7ced91707821310504d2817d1c49b1a670ad70098a53b27e803c8c89f1b9aeb1

16 lines
369 B
Plaintext

'use strict'
const { pipeline, PassThrough } = require('stream')
module.exports = async function ({ targets }) {
const streams = await Promise.all(targets.map(async (t) => {
const fn = require(t.target)
const stream = await fn(t.options)
return stream
}))
const stream = new PassThrough()
pipeline(stream, ...streams, () => {})
return stream
}