Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@waves/bignumber
Advanced tools
A Long class for representing a 64 bit two's-complement value.
The class is compatible with CommonJS and AMD loaders and is exposed globally as BigNumber
if neither is available.
var BigNumber = require("@waves/bignumber");
var longVal = new BigNumber('121231321321321313213');
console.log(longVal.toString());
...
number | string | BigNumber
)BigNumber.MAX_VALUE: BigNumber
Maximum signed value.
BigNumber.MIN_VALUE: BigNumber
Minimum signed value.
BigNumber.MAX_UNSIGNED_VALUE: BigNumber
Maximum unsigned value.
BigNumber#add(addend: Long | number | string
): BigNumber
Returns the sum of this and the specified Long.
BigNumber#div(divisor: Long | number | string
): BigNumber
Returns this Long divided by the specified.
BigNumber#eq(other: Long | number | string
): boolean
Tests if this Long's value equals the specified's.
BigNumber#gt(other: Long | number | string
): boolean
Tests if this Long's value is greater than the specified's.
BigNumber#gte/ge(other: Long | number | string
): boolean
Tests if this Long's value is greater than or equal the specified's.
BigNumber#isEven(): boolean
Tests if this Long's value is even.
BigNumber#isNegative(): boolean
Tests if this Long's value is negative.
BigNumber#isOdd(): boolean
Tests if this Long's value is odd.
BigNumber#isPositive(): boolean
Tests if this Long's value is positive.
BigNumber#isZero(): boolean
Tests if this Long's value equals zero.
BigNumber#lt(other: Long | number | string
): boolean
Tests if this Long's value is less than the specified's.
BigNumber#lte/le(other: Long | number | string
): boolean
Tests if this Long's value is less than or equal the specified's.
BigNumber#mod(divisor: Long | number | string
): BigNumber
Returns this Long modulo the specified.
BigNumber#mul(multiplier: Long | number | string
): BigNumber
Returns the product of this and the specified Long.
BigNumber#toBytes(le?: boolean
): number[]
Converts this Long to its byte representation.
To build an UMD bundle to dist/index.js
, run:
$> npm install @waves/bignumber
Running the tests:
$> npm test
FAQs
Waves Library for work with Bignumber in javascript
The npm package @waves/bignumber receives a total of 1,898 weekly downloads. As such, @waves/bignumber popularity was classified as popular.
We found that @waves/bignumber demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.