Skip to content
JS
Package

assertion-error

Error constructor for test and validation frameworks that implements standardized AssertionError specification.

v2.0.1, 18 Oct 2023MITESM onlyTypes: BundledTesting
$ npm install assertion-error

Key numbers

As of 25 Sept 2026
Weekly downloads
72.8m
+268% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v2.0.1
GitHub stars
26
18 forks
Open issues / PRs
2 / 0
Contributors
14
Commits, last 52 weeks
3

Downloads

Last week 2026-09-15 to 2026-09-21
025m50m75m100mSept 2025Mar 2026Sept 2026High 98.5m (25 Aug 2026)Low 14m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

72,777,315 downloads last week, 360,563,166 in the last month. The 12-month change of +268% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
2.0.1, 18 Oct 20232 years ago
First published
7 Apr 2013
Last push to GitHub
25 May 2026122 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
3
Dependents on npm
410

Major versions

  1. v2 first release 2.0.0, 5 Oct 2021
  2. v1 first release 1.0.0, 8 Jun 2013
  3. v0 first release 0.1.0, 7 Apr 2013

Recent releases

VersionPublished
2.0.118 Oct 2023
2.0.05 Oct 2021
1.1.07 Jan 2018
1.0.26 Jun 2016
1.0.15 Mar 2015
1.0.08 Jun 2013
0.1.07 Apr 2013
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
5.7 kB
Dependencies (0)
None
npm install assertion-error

CDN

jsDelivr: 77.4k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/assertion-error@2.0.1/
  • unpkghttps://unpkg.com/assertion-error@2.0.1/
  • esm.shhttps://esm.sh/assertion-error@2.0.1
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.