pipeToSync(source[, ...transforms], writer[, options])


pipeTo() 的同步版本。source、所有转换以及 writer 必须是同步的。不能接受异步可迭代对象或 Promise。

🌐 Synchronous version of pipeTo(). The source, all transforms, and the writer must be synchronous. Cannot accept async iterables or promises.

writer 必须具有 *Sync 方法(writeSyncwritevSyncendSync)和 fail() 才能工作。

🌐 The writer must have the *Sync methods (writeSync, writevSync, endSync) and fail() for this to work.