Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function runStream (source, makeStream, objectMode, done) {
const targetStream = makeStream()
const sourceStream = (objectMode)
? intoStream.obj(source)
: intoStream(source)
endOfStream(sourceStream.pipe(targetStream).resume(), done)
}