New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@exodus/bigint

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/bigint

bigint wrappers for native BigUnt, bn.js and others

2.0.2
Version published
Weekly downloads
3.7K
14.99%
Maintainers
0
Weekly downloads
 
Created

@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)

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts