Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.164.253
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
cloneable-readable /
Delete
Unzip
Name
Size
Permission
Date
Action
.travis.yml
127
B
-rw-rw-r--
2022-08-30 11:49
LICENSE
1.06
KB
-rw-rw-r--
2022-08-30 11:49
README.md
1.38
KB
-rw-rw-r--
2022-08-30 11:49
example.js
321
B
-rw-rw-r--
2022-08-30 11:49
index.js
3.15
KB
-rw-rw-r--
2022-08-30 11:49
package.json
960
B
-rw-rw-r--
2022-08-30 11:49
test.js
14.33
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
# cloneable-readable [](https://greenkeeper.io/) [](https://travis-ci.org/mcollina/cloneable-readable) Clone a Readable stream, safely. ```js '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')) }) ``` **cloneable-readable** automatically handles `objectMode: true`. This module comes out of an healthy discussion on the 'right' way to clone a Readable in https://github.com/gulpjs/vinyl/issues/85 and https://github.com/nodejs/readable-stream/issues/202. This is my take. **YOU MUST PIPE ALL CLONES TO START THE FLOW** You can also attach `'data'` and `'readable'` events to them. ## API ### cloneable(stream) Create a `Cloneable` stream. A Cloneable has a `clone()` method to create more clones. All clones must be resumed/piped to start the flow. ### cloneable.isCloneable(stream) Check if `stream` needs to be wrapped in a `Cloneable` or not. ## Acknowledgements This project was kindly sponsored by [nearForm](http://nearform.com). ## License MIT