Package note
ts-pattern
The exhaustive Pattern Matching library for TypeScript.
The exhaustive Pattern Matching library for TypeScript.
Scroll the table horizontally to compare packages. Each fact includes its source and limits.
| Fact | ts-pattern |
|---|---|
| Analyzed version | 5.9.2 |
| npm downloads | 10,384,643 Source2026-11-29 through 2026-12-05 (inclusive) Retrieved: 2026-12-06T10:13:06.295Z All versions; includes CI and repeat downloads, not unique users. |
| Browser bundle | 2.6 KB gzip 7.8 KB minified Bundlephobia minified + gzip Version 5.9.2 SourceRetrieved: 2026-12-06T10:13:06.258Z Synthetic default-entry browser bundle; imports, plugins, runtime and bundler settings change app output. |
| Version released | 2026-10-14T09:03:33.043Z Version 5.9.2 SourceRetrieved: 2026-12-06T10:13:05.998Z Publisher-declared metadata; not an independent code audit. |
| Registry modified | 2026-10-14T09:03:33.224Z Version 5.9.2 SourceRetrieved: 2026-12-06T10:13:05.998Z Registry document modification, not necessarily a code release. |
| Declared license | MIT Version 5.9.2 SourceRetrieved: 2026-12-06T10:13:05.998Z Publisher-declared metadata; not an independent code audit. |
| Registry-declared types | dist/index.d.ts./dist/index.d.ts./dist/index.d.cts./dist/types/index.d.ts./dist/types/index.d.ctsVersion 5.9.2 SourceRetrieved: 2026-12-06T10:13:05.998Z Registry-declared paths only; files, correctness and runtime compatibility have not been verified. Missing paths mean unknown. |
| npm unpacked size | 448.5 KB Version 5.9.2 SourceRetrieved: 2026-12-06T10:13:05.998Z npm unpacked archive size; not a browser bundle measurement. |
| Security advisories | Not checked Retrieved: Unavailable No advisory service is queried. Not checked does not mean safe. |
Analyzed versions follow the latest npm dist-tag at acquisition. Compatibility has not been verified.
- ts-pattern: The exhaustive Pattern Matching library for TypeScript.
The table records ts-pattern version 5.9.2. Download counts cover all versions during the stated period. Read each source with its retrieval time and limits. Missing declarations mean unknown. Security advisories are not checked, and no composite health or quality score is assigned.
Free JS Stack Cheatsheet
The best package for every category — one PDF.
Join 500+ devs. No spam.