wbigint
v0.0.1
Published
Wrapper to BigInt Native or simulate depending if supported.
Downloads
8
Maintainers
Readme
wbigint
This library will wrap BigInt to an equivalent big-integer class using native BigInt if available.
Check big-integer for more information
Install
$ npm install wbigint
Example
const BigInt = require("wbigint");
const a = BigInt("11111111111111111111111111111111");
const b = BigInt("22222222222222222222222222222222");
const c = a.add(b);
console.log(c.toString());
// Output: 33333333333333333333333333333333