Files
memecoin-botV2/.pnpm-store/v10/files/c4/16d85bd6906c57efd5c9f618b24b0eeaa7c38080b441887469fc02bf2b97e77a27e4d42445d846a7d4eeb848209ac6b27b4ec7a168f68174c386804be792fc

14 lines
289 B
Plaintext

'use strict'
const fs = require('node:fs')
const { once } = require('node:events')
async function run (opts) {
if (!opts.destination) throw new Error('kaboom')
const stream = fs.createWriteStream(opts.destination)
await once(stream, 'open')
return stream
}
module.exports = run