{"library":"command-line-test","type":"library","category":null,"description":"command-line-test is a focused Node.js utility library designed for performing integration tests against command-line interfaces and executables. Currently at version 1.0.10, it provides a unified API to execute shell commands and processes using Node.js's `child_process` module capabilities, including `fork`, `spawn`, `exec`, and `execFile`. The library simplifies the capture and analysis of standard output (`stdout`), standard error (`stderr`), and exit codes from executed commands, making it ideal for verifying CLI tool behavior. It supports asynchronous operations via Promises, traditional Node.js callbacks, and generator-based `yield` (often used with frameworks like `co` or `co-mocha`). Its primary differentiator is its straightforward approach to command execution and result parsing within a test environment, offering a stable and mature solution for CLI automation testing. The project appears to be in a maintenance phase, with infrequent updates since its stable 1.x release series.","language":"javascript","status":"maintenance","version":"1.0.10","tags":["javascript","test","unittest"],"last_verified":"Wed May 27","install":[{"cmd":"npm install command-line-test","imports":["const CliTest = require('command-line-test');","const CliTest = require('command-line-test').CliTest;","const CliTest = require('command-line-test');"]},{"cmd":"yarn add command-line-test","imports":[]},{"cmd":"pnpm add command-line-test","imports":[]}],"homepage":null,"github":"https://github.com/macacajs/command-line-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/command-line-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/command-line-test/compatibility"}}