citty
npmv0.2.2TypeScriptElegant CLI Builder
Safe to adopt
Yes — citty scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 3 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 112 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 34 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding citty to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the citty README.
import { defineCommand, runMain } from "citty";
const main = defineCommand({
meta: {
name: "hello",
version: "1.0.0",
description: "My Awesome CLI App",
},
args: {
name: {
type: "positional",
description: "Your name",
required: true,
},Dependencies
Declared by citty v0.2.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (12)
Used by
Popular packages that depend on citty.
Relationship graph
Dependencies (left) and dependents (right) of citty.
Frequently installed together
TypeScript definitions for node
Runtime agnostic JS utils
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
V8 coverage provider for Vitest
URL utils for humans
Next generation testing framework powered by Vite
Node.js utilities and TypeScript definitions for `package.json` and `tsconfig.json`
Universal filesystem path utils
A minimal library for executing processes in Node
Release history
3 releases in the last two years, typically about 50 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.2.2latest | 3 months ago | 34 KB | MIT |
| 0.2.1 | 5 months ago | 24 KB | MIT |
| 0.2.0 | 6 months ago | 23 KB | MIT |
| 0.1.6 | 2 years ago | 44 KB | MIT |
| 0.1.5 | 2 years ago | 44 KB | MIT |
| 0.1.4 | 2 years ago | 44 KB | MIT |
| 0.1.3 | 2 years ago | 42 KB | MIT |
| 0.1.2 | 3 years ago | 36 KB | MIT |
| 0.1.1 | 3 years ago | 43 KB | MIT |
| 0.1.0 | 3 years ago | 32 KB | MIT |
| 0.0.2 | 3 years ago | 39 KB | MIT |
| 0.0.1 | 3 years ago | 38 KB | MIT |
| 0.0.0 | 4 years ago | 60 B | MIT |
Overview
citty is an npm package that elegant CLI Builder. It has 1 known dependents in the graph. The latest version is 0.2.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need elegant CLI Builder and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use citty?
Yes — citty scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 112 days ago. 3 releases in the last 2 years.
How do I install citty?
Run `npm install citty` to add citty to your npm project.
What license is citty released under?
citty is distributed under the MIT license.
How popular is citty?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on citty.
Is citty still maintained?
The most recent release of citty (v0.2.2) was published 3 months ago.
Does citty run install scripts?
No. citty does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.