1.1.0 • Published 5 years ago

bigint-unboxed v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

JavaScript big integers with support for ES6 BigInt and unboxed small integers

  • Small integers are stored as 52 bit unboxed JS integers
  • Larger integers are either represented by ES6 BigInts or by a fallback implementation
const I = require("bigint-unboxed");
const a = I.intAdd(I.I(1), I.I(2));
const b = I.intMul(I.I(3), I.I(2));
const c = I.intShl(I.I(1), 1234);
1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago