This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/thread-stream/test/to-file.mjs
T

9 lines
206 B
JavaScript

import { createWriteStream } from 'fs'
import { once } from 'events'
export default async function run (opts) {
const stream = createWriteStream(opts.dest)
await once(stream, 'open')
return stream
}