get-stdin reliably reads data from stdin, addressing quirks across different operating systems and environments. Unlike simply piping process.stdin, it handles scenarios where stdin might not be directly connected to a terminal. This package ensures your Node.js script correctly captures piped input, crucial for command-line tools or scripts that process data streams. It's simple to integrate and provides a consistent experience regardless of the user's setup.
The get-stdin npm package shows sporadic releases. Initial development occurred in 2014-2015 with several versions. Releases slowed significantly after 2015, with single versions published in March 2018, April 2019, May 2020, and April 2021. There have been no releases since April 2021; the package appears to be in maintenance mode or abandoned.
NPM package "get-stdin" downloads surged in early 2024, peaking around 70 million in October and November before dipping. Downloads remained relatively stable in early 2025 before a jump in June. August 2025 downloads are incomplete but significantly lower, indicating a potential downward trend this month.