File size: 224 Bytes
6491ad4
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'

const { Writable } = require('stream')

async function run (opts) {
  const stream = new Writable({
    write (chunk, enc, cb) {
      cb(new Error('kaboom'))
    }
  })
  return stream
}

module.exports = run