diff --git a/doc/api/stream.md b/doc/api/stream.md index 30e6062603a724..64045f01608121 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1211,6 +1211,17 @@ added: v11.4.0 Is `true` if it is safe to call [`readable.read()`][stream-read], which means the stream has not been destroyed or emitted `'error'` or `'end'`. +##### `readable.readableDidRead` + + +* {boolean} + +Allows determining if the stream has been or is about to be read. +Returns true if `'data'`, `'end'`, `'error'` or `'close'` has been +emitted. + ##### `readable.readableEncoding`