{"library":"cac","type":"library","category":null,"description":"CAC (Command And Conquer) is a lightweight, dependency-free JavaScript library for building robust command-line interface (CLI) applications. The current stable version, 7.0.0, released in 2024, marks a significant transition to being ESM-only and requires Node.js 20.19.0 or newer. CAC differentiates itself by providing a minimal API surface (four core methods for basic CLIs) while offering powerful features such as default commands, Git-like subcommands, argument and option validation, variadic arguments, and automated help message generation. Its development is TypeScript-first, ensuring type safety and an enhanced developer experience. Release cadence is typically feature-driven, with breaking changes carefully documented in major version bumps and minor/patch releases focusing on stability and compatibility.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cac","imports":["import cac from 'cac'","import type { CAC } from 'cac'","cli.addEventListener('command:name', () => {})"]},{"cmd":"yarn add cac","imports":[]},{"cmd":"pnpm add cac","imports":[]}],"homepage":"https://cac.cnodejs.org","github":"https://github.com/cacjs/cac","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cac","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/cac/compatibility"}}