cloneable-readable:安全地克隆可读流

时间:2024-06-01 17:59:16
【文件属性】:

文件名称:cloneable-readable:安全地克隆可读流

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-01 17:59:16

JavaScript

克隆可读 安全地克隆可读流。 'use strict' var cloneable = require ( 'cloneable-readable' ) var fs = require ( 'fs' ) var pump = require ( 'pump' ) var stream = cloneable ( fs . createReadStream ( './package.json' ) ) pump ( stream . clone ( ) , fs . createWriteStream ( './out1' ) ) // simulate some asynchronicity setImmediate ( function ( ) { pump ( stream , fs . createWriteStream ( './out2' ) ) } ) object


【文件预览】:
cloneable-readable-master
----.github()
--------dependabot.yml(125B)
--------workflows()
----example.js(329B)
----test.js(15KB)
----.npmignore(538B)
----LICENSE(1KB)
----README.md(1KB)
----big(1024KB)
----.gitignore(561B)
----index.js(4KB)
----package.json(900B)

网友评论