{"library":"citty","type":"library","category":null,"description":"citty is a modern, elegant, and highly performant CLI builder for Node.js, currently stable at version `0.2.2`. It distinguishes itself by being entirely zero-dependency since `v0.2.0`, leveraging Node.js's native `util.parseArgs` for its core argument parsing. This design choice results in a significantly reduced install size (from 267kB to 22.8kB as of `v0.2.0`) and fast execution, making it an excellent choice for lightweight command-line tools. `citty` provides a flexible and composable API that supports nested sub-commands, complete with options for lazy and asynchronous loading, which is crucial for building large-scale CLIs without incurring heavy startup costs. Recent enhancements in `v0.2.2` introduced a robust plugin system, allowing developers to extend command functionality with reusable `setup` and `cleanup` hooks. It also offers smart value parsing, type casting, boolean shortcuts, and automatically generates comprehensive usage information. The project maintains an active release cadence, frequently adding new features and addressing issues, demonstrating its ongoing development and commitment to a stable and feature-rich experience.","language":"javascript","status":"active","version":"0.2.2","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install citty","imports":["import { defineCommand } from 'citty'","import { runMain } from 'citty'","import { defineCittyPlugin } from 'citty'"]},{"cmd":"yarn add citty","imports":[]},{"cmd":"pnpm add citty","imports":[]}],"homepage":null,"github":"https://github.com/unjs/citty","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/citty","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/citty/compatibility"}}