Skip to content
JS
Package

bn.js

Big number implementation in pure javascript

v5.2.5, 9 Jul 2026MITCommonJSTypes: None
$ npm install bn.js

Key numbers

As of 25 Sept 2026
Weekly downloads
57.2m
+29% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 months ago
v5.2.5
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 65.7m (14 Jul 2026)Low 22.9m (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.

57,184,378 downloads last week, 241,380,378 in the last month. The 12-month change of +29% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
6128 in total
Latest version
5.2.5, 9 Jul 20262 months ago
First published
26 Apr 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
6,052

Major versions

  1. v5 first release 5.0.0, 7 Jul 2019
  2. v4 first release 4.0.0, 28 Oct 2015
  3. v3 first release 3.0.0, 7 Jul 2015
  4. v2 first release 2.0.0, 9 Feb 2015
  5. v1 first release 1.0.0, 5 Jan 2015
  6. v0 first release 0.1.0, 26 Apr 2014

Recent releases

VersionPublished
5.2.59 Jul 2026
4.12.59 Jul 2026
5.2.426 Jun 2026
4.12.426 Jun 2026
4.12.319 Feb 2026
5.2.319 Feb 2026
4.12.225 Apr 2025
5.2.225 Apr 2025
4.12.111 Nov 2024
5.2.124 May 2022
4.12.024 Feb 2021
5.2.023 Feb 2021
5.1.314 Aug 2020
5.1.220 May 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
97 kB
Dependencies (0)
None
npm install bn.js

CDN

jsDelivr: 84.7k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/bn.js@5.2.5/
  • unpkghttps://unpkg.com/bn.js@5.2.5/
  • esm.shhttps://esm.sh/bn.js@5.2.5
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.