@harmoniclabs/bigint-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@harmoniclabs/bigint-utils

exported functions

function abs(n: bigint): bigint;
function random(): bigint;
function max(...nums: bigint[]): bigint;
function min(...nums: bigint[]): bigint;
function log2(num: bigint): bigint;
function bigintFromBufferLE(buffer: Uint8Array): bigint;
function bigintFromBuffer(buffer: Uint8Array): bigint;
function bigintToBuffer(bigint: bigint, nBytes?: number | undefined): Uint8Array;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    139
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    139

Package Sidebar

Install

npm i @harmoniclabs/bigint-utils

Weekly Downloads

139

Version

1.0.0

License

Apache-2.0

Unpacked Size

8.48 kB

Total Files

6

Last publish

Collaborators

  • harmonicpool