jsbn
npmv1.1.0The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
Not recommended for new projects
No — jsbn should not be adopted for new projects. Last published 3495 days ago.
- AAdoption: grade A, Excellent.
14.5M downloads per week and 2 known dependents.
- FMaintenance: grade F, Failing.
Last published 3495 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding jsbn to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
jsbn vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| jsbnthis page | 14.5M | 2 | MIT | 9 years ago |
| decimal.js | 0 | 1 | MIT | 1 day ago |
| big-integer | 0 | 1 | Unlicense | 1 day ago |
| is-bigint | 0 | 1 | MIT | 1 day ago |
| node-int64 | 0 | 1 | MIT | 1 day ago |
Used by
Popular packages that depend on jsbn.
Relationship graph
Dependencies (left) and dependents (right) of jsbn.
Frequently installed together
Modern Buffer API polyfill without footguns
Port of TweetNaCl cryptographic library to JavaScript
Contains parsers and serializers for ASN.1 (currently BER only)
getpass for node.js
Port of the OpenBSD bcrypt_pbkdf function to pure JS
A light, featureful and explicit option parsing library.
ECC JS code based on JSBN
Extra assertions on top of node's assert module
Release history
No releases in the last two years, typically about 472 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.0latest | 9 years ago | — | MIT |
| 0.1.1 | 9 years ago | — | MIT |
| 0.1.0 | 11 years ago | — | BSD |
| 0.0.0 | 13 years ago | — | BSD |
Overview
jsbn is an npm package that the jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers. It is extremely widely used, with about 14.5M downloads per week and 2 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need the jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (14.5M weekly downloads).
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use jsbn?
No — jsbn should not be adopted for new projects. Last published 3495 days ago.
How do I install jsbn?
Run `npm install jsbn` to add jsbn to your npm project.
What license is jsbn released under?
jsbn is distributed under the MIT license.
How popular is jsbn?
jsbn has approximately 14,450,124 downloads per week and 2 known dependent packages.
Is jsbn still maintained?
The most recent release of jsbn (v1.1.0) was published 9 years ago.
Does jsbn run install scripts?
No. jsbn does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.