A super lightweight library to handle bigints in web3 applications.
npm install @crypto-utils/bigint
import { BigNumber } from '@crypto-utils/bigint'
const bn = new BigNumber(1234567891011123456789n, 18)
const result = bn.mul(2n)
const result = bn.div(123456789n)
const value = bn.value
const decimals = bn.decimals
const number = bn.toNumber()
// 123456789.1011123456789