end-of-stream reliably determines when a readable or writable stream has finished, regardless of success or failure. It handles stream closure events like finish, end, close, and errors, providing a consistent callback. This package simplifies stream management by abstracting away complex error and completion handling logic. With end-of-stream, developers can easily execute cleanup and finalization tasks upon a stream's termination, ensuring robust stream processing in Node.js applications. It provides a single, predictable entry point for handling stream lifecycle events.
The npm package end-of-stream had initial releases in 2013 and 2014, with occasional updates until 2019. A notable period was March 2017 with three versions released. After a long pause, a new version 1.4.5 was released in June 2025. Overall, the package has seen infrequent releases, with long periods of inactivity.
End-of-stream's npm package downloads showed consistent numbers around 142-163 million from March 2024 to March 2025, with a significant surge to over 219 million by July 2025. Downloads decreased in August 2025, and incomplete data marks September 2025.