# @w5/uintb64

> [‼️]: ✏️README.mdt

Latest version **0.0.6** (published 2023-06-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @w5/uintb64
pnpm add @w5/uintb64
yarn add @w5/uintb64
bun add @w5/uintb64
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-06-25 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | i@wac.tax |
| Maintainers | i-user |

## Links

- npm: https://www.npmjs.com/package/@w5/uintb64
- Repository: https://github.com/wactax/node
- Homepage: https://github.com/wactax/node/tree/main/uintb64
- Issues: https://github.com/wactax/node/issues
- npm.io page: https://npm.io/package/@w5/uintb64

## Dependencies (2)

- [@w5/vbyte](https://npm.io/package/@w5/vbyte.md) ^0.0.1
- [@w5/urlb64](https://npm.io/package/@w5/urlb64.md) ^0.0.2

## Recent versions

- 0.0.6 (latest) — 2023-06-25
- 0.0.5 — 2023-06-25
- 0.0.4 — 2023-06-25
- 0.0.3 — 2023-06-25
- 0.0.2 — 2023-06-12

## README

[‼️]: ✏️README.mdt

# @w5/uintb64

[test/main.coffee](./test/main.coffee) :

```coffee
#!/usr/bin/env coffee

> @w5/uintb64/uintB64
  @w5/uintb64/b64Uint
  @w5/uintb64/cidB64
  @w5/uintb64/b64Cid

for n from [
  1,2,3333,255,256,0, 65539, 9876543210
  Number.MAX_SAFE_INTEGER
]
  # e = uintB64(n)
  # console.log n, e, b64Uint(e)
  t = cidB64(2,n)
  console.log n, t, b64Cid(t)
```

output :

```
1 AgE [ 2, 1 ]
2 AgI [ 2, 2 ]
3333 AoUa [ 2, 3333 ]
255 Av8B [ 2, 255 ]
256 AoAC [ 2, 256 ]
0 AgA [ 2, 0 ]
65539 AoOABA [ 2, 65539 ]
9876543210 AuqtwOUk [ 2, 9876543210 ]
9007199254740991 Av________8P [ 2, 9007199254740991 ]
```

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