Comparing version 4.10.2 to 4.10.3
{ | ||
"name": "bn.js", | ||
"version": "4.10.2", | ||
"version": "4.10.3", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -59,8 +59,10 @@ # <img src="./logo.png" alt="bn.js" width="160" height="160" /> | ||
* `a.clone()` - clone number | ||
* `a.toArray(endian, length)` - convert to byte array, and optionally zero | ||
* `a.toString(base, length)` - convert to base-string and pad with zeroes | ||
* `a.toNumber()` - convert to Javascript Number (limited to 53 bits) | ||
* `a.toJSON()` - convert to JSON compatible hex string (alias of `toString(16)`) | ||
* `a.toArray(endian, length)` - convert to byte `Array`, and optionally zero | ||
pad to length, throwing if already exceeding | ||
* `a.toString(base, padding)` - convert to base-string and pad with zeroes | ||
* `a.toNumber()` - convert to Javascript Number (limited to 53 bits) | ||
* `a.toBuffer()` - convert to Node.js Buffer (if available) | ||
* `a.toArrayLike(type)` - convert to an instance of `type`, which must behave like an `Array` | ||
* `a.toArrayLike(type, endian, length)` - convert to an instance of `type`, | ||
which must behave like an `Array` | ||
* `a.toBuffer(endian, length)` - convert to Node.js Buffer (if available) | ||
* `a.bitLength()` - get number of bits occupied | ||
@@ -67,0 +69,0 @@ * `a.zeroBits()` - return number of less-significant consequent zero bits |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164468
4630
219