# TS-Pattern — card for AI agents

Exhaustive pattern matching for TypeScript.

Category: Utilities · npm package `ts-pattern` · latest version 5.9.2 (checked 2026-11-01)
Install: `npm install ts-pattern`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 60.0 (#951 of all tools, 115 of 406 in its category)
- Used in 7 public projects set up for AI coding agents (0.1%)
- Downloads last week: 9,511,833 (as of 2026-11-17), +25.7% over 4 weeks
- GitHub stars: 15,218 (as of 2026-11-17)
- Last push: 2026-10-14

## Often used with
TypeScript 100.0%, React 73.7%, Biome 36.8%, Prettier 52.6%, ESLint 68.4%, Vite 47.4%

## Links
- AgentGid page: https://agentgid.com/tools/ts-pattern/
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Repository: https://github.com/gvergnaud/ts-pattern

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
