# @harmoniclabs/bigint-utils

> ## exported functions

Latest version **1.0.0** (published 2023-05-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @harmoniclabs/bigint-utils
pnpm add @harmoniclabs/bigint-utils
yarn add @harmoniclabs/bigint-utils
bun add @harmoniclabs/bigint-utils
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-05-01 |
| First published | 2023-05-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harmonic Laboratories |
| Maintainers | harmonicpool |

## Links

- npm: https://www.npmjs.com/package/@harmoniclabs/bigint-utils
- Repository: https://github.com/HarmonicLabs/bigint-utils
- Homepage: https://github.com/HarmonicLabs/bigint-utils#readme
- Issues: https://github.com/HarmonicLabs/bigint-utils/issues
- npm.io page: https://npm.io/package/@harmoniclabs/bigint-utils

## Dependencies (1)

- [@harmoniclabs/uint8array-utils](https://npm.io/package/@harmoniclabs/uint8array-utils.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2023-05-01

## README

# @harmoniclabs/bigint-utils

## exported functions

```ts
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;
```

---
_Source: https://npm.io/package/@harmoniclabs/bigint-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
