Coffee CLI Testing
JSON →Coffee is a Node.js library designed for robust and fluent testing of command-line interfaces (CLIs). It abstracts the complexities of `child_process.fork` and `child_process.spawn`, providing a streamlined API for executing and asserting against CLI outputs and exit codes. The library, currently stable at version 5.5.1, offers powerful assertion chains for standard output (stdout), standard error (stderr), and process exit codes, supporting both exact string matches and regular expressions. Coffee differentiates itself with features like a debug mode for printing live stdio, interaction capabilities for prompts, and an extensible architecture for creating custom assertion rules. It ships with TypeScript type definitions, making it well-suited for modern JavaScript and TypeScript development workflows, often integrated into test frameworks like Mocha or Jest.
Traffic · last 30 days ↑17% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇫🇷 France