Skip to content
JS
Package

err-code

Create an error with a code

v3.0.1, 5 Feb 2021MITCommonJSTypes: Bundled
$ npm install err-code

Key numbers

As of 25 Sept 2026
Weekly downloads
20.8m
+17% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v3.0.1
GitHub stars
20
9 forks
Open issues / PRs
5 / 8
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 52m (16 Jun 2026)Low 10m (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.

20,834,368 downloads last week, 91,188,175 in the last month. The 12-month change of +17% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
013 in total
Latest version
3.0.1, 5 Feb 20215 years ago
First published
28 Jun 2014
Last push to GitHub
22 Jun 20221,555 days before the snapshot
Repository archived
No
Open issues
5
Open pull requests
8
Commits, last 52 weeks
0
Dependents on npm
361

Major versions

  1. v3 first release 3.0.0, 2 Feb 2021
  2. v2 first release 2.0.0, 17 Jul 2019
  3. v1 first release 1.0.0, 2 Jan 2016
  4. v0 first release 0.1.0, 28 Jun 2014

Recent releases

VersionPublished
3.0.15 Feb 2021
3.0.02 Feb 2021
2.0.318 Jun 2020
2.0.213 Jun 2020
2.0.110 Jun 2020
2.0.017 Jul 2019
1.1.23 Apr 2017
1.1.114 Jan 2016
1.1.014 Jan 2016
1.0.02 Jan 2016
0.1.212 Aug 2014
0.1.117 Jul 2014
0.1.028 Jun 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
7.6 kB
Dependencies (0)
None
npm install err-code
  • jsDelivrhttps://cdn.jsdelivr.net/npm/err-code@3.0.1/
  • unpkghttps://unpkg.com/err-code@3.0.1/
  • esm.shhttps://esm.sh/err-code@3.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.