3.0.1 • Published 1 year ago

@exodus/bigint v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@exodus/bigint

Immutable API wrapper for big integers, using BigInt if available in the JS environment and falling back to bn.js if it isn't

Usage

import BigIntWrapper from '@exodus/bigint'

const three = BigIntWrapper.wrap(3)
const five = BigIntWrapper.wrap(5)

// perform arithmetic
// see full API: ./src/native-bigint.js and ./src/__tests__/index.test.js
three.add(five).mul(three).div(five).pow(three).sub(five)
3.0.1

1 year ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1-rc.1

2 years ago

1.0.0

2 years ago