# is-stream-ended **Repository Path**: mirrors_stephenplusplus/is-stream-ended ## Basic Information - **Project Name**: is-stream-ended - **Description**: Check if a stream has ended - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # is-stream-ended > Check if a stream has ended. ```sh $ npm install --save is-stream-ended ``` ```js var isStreamEnded = require('is-stream-ended'); isStreamEnded(stream); // false stream.end(); isStreamEnded(stream); // true ``` ### isStreamEnded(stream) #### stream - Type: `Stream`, `Object` Providing a stream will check against the `stream._readableState` object. To check from the `_writableState`, provide that object directly.