citty
0.2.2 · 1 Apr 2026MIT51.4M / weekRepositoryHomepagenpmAtom feed
0.2.2 is the newest release of 0.2.x.
In short
4 breaking3 new3 fixed10 internal
- Breaking
⚠️ Parsed optionals and enum type safety
- Breaking
⚠️ Conditionally print negative boolean argument usage
- Breaking
⚠️ Use
node:util.parseArgsfor arg parsing - Breaking
⚠️ ESM-only dist
Release note
Note
🌟 citty is now zero dependency reducing install size from 267kB to 22.8kB
Enhancements
Support
hiddenmeta to hide commandSupport
enumarg typeSupport
negativeDescriptionfor args- Breaking
⚠️ Parsed optionals and enum type safety
Fixes
- Breaking
⚠️ Conditionally print negative boolean argument usage
types: Value type of NumberArgDef should be number
Show cli error message
Allow
numberarg to be optional
Refactors
- Breaking
⚠️ Use
node:util.parseArgsfor arg parsing
Build
- Breaking
⚠️ ESM-only dist
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.