Packages

citty

0.2.2 · 1 Apr 2026MIT51.4M / weekRepositoryHomepagenpmAtom feed

Your version

0.2.0

20 Jan 2026Where it was published

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.parseArgs for arg parsing

  • Breaking

    ⚠️ ESM-only dist

Release note

compare changes

Note

🌟 citty is now zero dependency reducing install size from 267kB to 22.8kB

Enhancements

  • Support hidden meta to hide command

  • Support enum arg type

  • Support negativeDescription for 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 number arg to be optional

Refactors

  • Breaking

    ⚠️ Use node:util.parseArgs for 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.