Package
assert-never
Helper function for exhaustive checks of discriminated unions in TypeScript
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.7m
- +80% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v1.4.0
- GitHub stars
- 45
- 6 forks
- Open issues / PRs
- 0 / 1
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
2,734,252 downloads last week, 13,930,751 in the last month. The 12-month change of +80% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 06 in total
- Latest version
- 1.4.0, 17 Dec 20241 year ago
- First published
- 27 Mar 2017
- Last push to GitHub
- 17 Dec 2024646 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 1
- Commits, last 52 weeks
- 0
- Dependents on npm
- 143
Major versions
- v1 first release 1.0.0, 27 Mar 2017
Recent releases
| Version | Published |
|---|---|
| 1.4.0 | 17 Dec 2024 |
| 1.3.0 | 7 Jul 2024 |
| 1.2.1 | 13 May 2020 |
| 1.2.0 | 24 Apr 2019 |
| 1.1.0 | 25 Dec 2017 |
| 1.0.0 | 27 Mar 2017 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 5.6 kB
- Dependencies (0)
- None
npm install assert-never- jsDelivr
https://cdn.jsdelivr.net/npm/assert-never@1.4.0/ - unpkg
https://unpkg.com/assert-never@1.4.0/ - esm.sh
https://esm.sh/assert-never@1.4.0
Indexability: Indexed.