readable-stream (4.7.0) - npm Package Quality | Cloudsmith Navigator

Report

New research: Dependency attacks 2026

Download

Complexity Score

High

Open Issues

N/A

Dependent Projects

3,899

Weekly Downloads

173,029,794

Keywords

readable stream pipe node nodejs

License

Readme

readable-stream

Node.js core streams for userland

npm install readable-stream

This package is a mirror of the streams implementations in Node.js 18.19.0.

Full documentation may be found on the Node.js website.

If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use readable-stream only and avoid the “stream” module in Node-core, for background see this blog post.

As of version 2.0.0 readable-stream uses semantic versioning.

Version 4.x.x

v4.x.x of readable-stream is a cut from Node 18. This version supports Node 12, 14, 16 and 18, as well as evergreen browsers. The breaking changes introduced by v4 are composed of the combined breaking changes in:

This also includes many new features.

Version 3.x.x

v3.x.x of readable-stream is a cut from Node 10. This version supports Node 6, 8, and 10, as well as evergreen browsers, IE 11 and latest Safari. The breaking changes introduced by v3 are composed by the combined breaking changes in Node v9 and Node v10, as follows:

  1. Error codes: https://github.com/nodejs/node/pull/13310, https://github.com/nodejs/node/pull/13291, https://github.com/nodejs/node/pull/16589, https://github.com/nodejs/node/pull/15042, https://github.com/nodejs/node/pull/15665, https://github.com/nodejs/readable-stream/pull/344
  2. ‘readable’ have precedence over flowing https://github.com/nodejs/node/pull/18994
  3. make virtual methods errors consistent https://github.com/nodejs/node/pull/18813
  4. updated streams error handling https://github.com/nodejs/node/pull/18438
  5. writable.end should return this. https://github.com/nodejs/node/pull/18780
  6. readable continues to read when push(‘’) https://github.com/nodejs/node/pull/18211
  7. add custom inspect to BufferList https://github.com/nodejs/node/pull/17907
  8. always defer ‘readable’ with nextTick https://github.com/nodejs/node/pull/17979

Version 2.x.x

v2.x.x of readable-stream is a cut of the stream module from Node 8 (there have been no semver-major changes from Node 4 to 8). This version supports all Node.js versions from 0.8, as well as evergreen browsers and IE 10 & 11.

Usage

You can swap your require('stream') with require('readable-stream') without any changes, if you are just using one of the main classes and functions.

const {
  Readable,
  Writable,
  Transform,
  Duplex,
  pipeline,
  finished
} = require('readable-stream')

Note that require('stream') will return Stream, while require('readable-stream') will return Readable. We discourage using whatever is exported directly, but rather use one of the properties as shown in the example above.

Usage In Browsers

You will need a bundler like browserify, webpack, parcel or similar. Polyfills are no longer required since version 4.2.0.

Streams Working Group

readable-stream is maintained by the Streams Working Group, which oversees the development and maintenance of the Streams API within Node.js. The responsibilities of the Streams Working Group include:

Team Members

abort-controller^3.0.0

buffer^6.0.3

events^3.3.0

process^0.11.10

string_decoder^1.3.0

57 Quality

CVE Issues Active

0

Scorecards Score

5.30

Test Coverage

No Data

Follows Semver

Yes

Github Stars

1,045

Dependencies total

33

Dependencies Outdated

15

Dependencies Deprecated

2

Threat Modelling

No Data

Repo Audits

No Data

34 Maintenance

60 Docs

Learn how to distribute readable-stream in your own private NPM registry

$ npm config set registry https://npm.cloudsmith.com/owner/repo

/Processing...

✓ Done

$ npm install readable-stream

/Processing...

✓ Done

106 Releases

4.7.0

Stable version

2 years ago

Released

001. 4.6.0

2 years ago

002. 4.5.2

3 years ago

003. 4.5.1

4 years ago

004. 4.5.0

4 years ago

005. 4.4.2

4 years ago

006. 4.4.1

4 years ago

007. 4.4.0

4 years ago

008. 3.6.2

4 years ago

009. 3.6.1

4 years ago

010. 2.3.8

11 years ago

Releases Continued...

4.3.0

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago