Buckets:
| 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 | |
| } | |
Xet Storage Details
- Size:
- 286 Bytes
- Xet hash:
- 24e5de9f61a6c8602b30d54f8a84ee14051b54abebd7e16360001129ab7d1c0b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.