Skip to content
JS
Package

number-to-bn

A simple method that will convert numbers, hex, BN or bignumber.js object into a BN.js object.

v1.7.0, 20 Dec 2016MITCommonJSTypes: NoneNumbers and maths
$ npm install number-to-bn

Key numbers

As of 25 Sept 2026
Weekly downloads
592.5k
-9% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
9 years ago
v1.7.0
GitHub stars
4
11 forks
Open issues / PRs
1 / 5
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1m (12 May 2026)Low 329.1k (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.

592,486 downloads last week, 2,757,040 in the last month. The 12-month change of -9% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
08 in total
Latest version
1.7.0, 20 Dec 20169 years ago
First published
7 Dec 2016
Last push to GitHub
27 Aug 2024758 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
5
Commits, last 52 weeks
0
Dependents on npm
243

Major versions

  1. v1 first release 1.0.0, 7 Dec 2016

Recent releases

VersionPublished
1.7.020 Dec 2016
1.6.020 Dec 2016
1.5.020 Dec 2016
1.4.010 Dec 2016
1.3.010 Dec 2016
1.2.07 Dec 2016
1.1.07 Dec 2016
1.0.07 Dec 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6.5.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (2)
bn.jsstrip-hex-prefix
npm install number-to-bn
  • jsDelivrhttps://cdn.jsdelivr.net/npm/number-to-bn@1.7.0/
  • unpkghttps://unpkg.com/number-to-bn@1.7.0/
  • esm.shhttps://esm.sh/number-to-bn@1.7.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@metamask/number-to-bn55.8k-2 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.