mock-stdin is a Node.js package that simplifies testing command-line interfaces. It allows you to programmatically mock user input fed to stdin, enabling automated testing of interactive CLI tools without manual intervention. The package provides an easy-to-use API for simulating keypresses, text input, and other standard input events. This ensures consistent and reproducible test results, making your CLI applications more robust and reliable. It offers precise control over input streams, making it an invaluable tool for comprehensive CLI application testing.