The jsbn
library is a pure JavaScript implementation of arbitrary-precision
integer arithmetic.
$ npm install --save @modern-dev/jsbn
import { BigInteger } from '@modern-dev/jsbn';
const bi = new BigInteger('91823918239182398123');
console.log(bi.bitLength()); // 67
https://github.com/akalin/jsbn
https://github.com/creationix/jsbn
https://github.com/andyperlitch/jsbn
jsbn
is released under a BSD license.
See LICENSE
for details.