转换流是 Duplex 流,其中输出以某种方式与输入相关。 与所有 Duplex 流一样,Transform 流实现了 Readable 和 Writable 接口。
Duplex
Transform
Readable
Writable
Transform 流的示例包括:
Transform streams are Duplex streams where the output is in some way related to the input. Like all Duplex streams, Transform streams implement both the Readable and Writable interfaces.
Examples of Transform streams include: