pipeToSync(source[, ...transforms], writer[, options])
source<Iterable> 同步数据源。...transforms<Function> | <Object> 零个或多个同步变换。writer<Object> 使用write(chunk)方法的目的地。options<Object>- 返回:<number> 写入的总字节数。
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 方法(writeSync、writevSync、endSync)和 fail() 才能工作。
🌐 The writer must have the *Sync methods (writeSync, writevSync,
endSync) and fail() for this to work.