Gathering detailed insights and metrics for cloneable-readable
Gathering detailed insights and metrics for cloneable-readable
Gathering detailed insights and metrics for cloneable-readable
Gathering detailed insights and metrics for cloneable-readable
npm install cloneable-readable
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
120 Stars
67 Commits
14 Forks
4 Watchers
4 Branches
5 Contributors
Updated on Jul 04, 2025
Latest Version
3.0.0
Package Id
cloneable-readable@3.0.0
Unpacked Size
23.11 kB
Size
5.13 kB
File Count
8
NPM Version
8.11.0
Node Version
16.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
6
Clone a Readable stream, safely.
1'use strict' 2 3var cloneable = require('cloneable-readable') 4var fs = require('fs') 5var pump = require('pump') 6 7var stream = cloneable(fs.createReadStream('./package.json')) 8 9pump(stream.clone(), fs.createWriteStream('./out1')) 10 11// simulate some asynchronicity 12setImmediate(function () { 13 pump(stream, fs.createWriteStream('./out2')) 14})
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.
Create a Cloneable
stream.
A Cloneable has a clone()
method to create more clones.
All clones must be resumed/piped to start the flow.
Check if stream
needs to be wrapped in a Cloneable
or not.
This project was kindly sponsored by nearForm.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 5/16 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More