sync mode on
This commit is contained in:
1 parent
1818932244
commit
1174b328e5
415 files changed
+44294
-1182
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
import { type PathLike, type WriteStream, createWriteStream } from 'fs'
|
||||
import { once } from 'events'
|
||||
|
||||
export default async function run (
|
||||
opts: { dest: PathLike },
|
||||
): Promise<WriteStream> {
|
||||
const stream = createWriteStream(opts.dest)
|
||||
await once(stream, 'open')
|
||||
return stream
|
||||
}
|
||||
Reference in new issue
Block a user