v7.0.0
Breaking
- Require Node.js 16 70571f8
- This package is now pure ESM. Please read this.
- Removed
getStream.array()
- It complicated the codebase considerably and I personally never used it.
- You can use
readableStream.toArray()
instead. Example
const getStream = require('get-stream'); getStream.buffer(…);
→import {getStreamAsBuffer} from 'get-stream'; getStreamAsBuffer(…);
const getStream = require('get-stream'); getStream.MaxBufferError;
→import {MaxBufferError} from 'get-stream'; MaxBufferError;
Tip
You may not need this package anymore.