stream-joint:管道可写流

时间:2021-05-22 04:54:51
【文件属性】:
文件名称:stream-joint:管道可写流
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-22 04:54:51
JavaScript 流联合 将流合并/合并为单个直通流,以便对直通流进行写入将写入所有流。 方便链接可写流。 例子 链接可写流 var fs = require ( "fs" ) ; var joint = require ( 'stream-joint' ) ; var streams = joint ( ) ; streams . pipe ( joint ( process . stdout ) ) . pipe ( joint ( fs . createWriteStream ( './temp.log' ) ) ) ; streams . write ( 'Let' s write to stdout and to a log file ) ; 合并可写流 var fs = require ( "fs" ) ; var joint = require ( 'stream-joint
【文件预览】:
stream-joint-master
----index.js(620B)
----package.json(645B)
----LICENSE(1KB)
----.gitignore(526B)
----README.md(714B)

网友评论