文件名称:readable-stream-clone:多次克隆可读流
文件大小:5KB
文件格式:ZIP
更新时间:2024-05-23 13:55:58
nodejs typescript stream clone ts
可读流克隆 npm安装可读流克隆 使用此实用程序,您可以将可读流传输到多个可写流中 节点 const fs = require ( "fs" ) ; const ReadableStreamClone = require ( "readable-stream-clone" ) ; const readStream = fs . createReadStream ( 'text.txt' ) ; const readStream1 = new ReadableStreamClone ( readStream ) ; const readStream2 = new ReadableStreamClone ( readStream ) ; const writeStream1 = fs . createWriteStream ( 'sample1.txt' ) ; const writeStre
【文件预览】:
readable-stream-clone-master
----readable-stream-clone.js(597B)
----tsconfig.json(6KB)
----README.md(1KB)
----index.d.ts(238B)
----.gitignore(383B)
----package-lock.json(441B)
----package.json(696B)