@modern-dev/jsbn
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

npm NPM

Tom Wu's jsbn library in TypeScript

The jsbn library is a pure JavaScript implementation of arbitrary-precision integer arithmetic.

Installation

$ npm install --save @modern-dev/jsbn

Usage

import { BigInteger } from '@modern-dev/jsbn';

const bi = new BigInteger('91823918239182398123');
console.log(bi.bitLength()); // 67

Similar projects

https://github.com/akalin/jsbn

https://github.com/creationix/jsbn

https://github.com/andyperlitch/jsbn

Licensing

jsbn is released under a BSD license. See LICENSE for details.

Tom Wu

Package Sidebar

Install

npm i @modern-dev/jsbn

Weekly Downloads

9

Version

1.2.5

License

BSD

Unpacked Size

218 kB

Total Files

27

Last publish

Collaborators

  • virtyaluk