# base36id

> Base36Id: Generating Human-readable Alphanumeric Identifiers

Latest version **1.0.3** (published 2019-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install base36id
pnpm add base36id
yarn add base36id
bun add base36id
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-07-12 |
| First published | 2019-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dale Blackwood |
| Maintainers | daleblackwood |
| Keywords | base36, human-readable, id, identifier, key |

## Links

- npm: https://www.npmjs.com/package/base36id
- Repository: https://github.com/daleblackwood/base36id
- Homepage: https://github.com/daleblackwood/base36id#readme
- Issues: https://github.com/daleblackwood/base36id/issues
- npm.io page: https://npm.io/package/base36id

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-07-12
- 1.0.2 — 2019-07-12
- 1.0.1 — 2019-07-12
- 1.0.0 — 2019-07-12

## README

[![npm version](https://badge.fury.io/js/base36id.svg)](https://badge.fury.io/js/base36id)

## Base36 id strings
This set of functions exists to convert various data types to and from base36 strings.

### Why a base36 string?
 - Base36 strings are great way to shorten numeric ids for external applications. For example:
`1000000` (1 million) converts down to `LFLS`.
 - Base36 strings are alphanumeric, using only commonly used letters and numbers
 - Base36 strings are case-insensitive

### Where have I seen this before?
 - Microsoft product keys
 - Various HR software

### Methods

`uintToBase36(n)` - convert a number to a base36 id string

`uintFromBase36(s)` - convert a base36 id string to a number

`uintArrayToBase36(uints, segmentLength)` - convert an array of numbers to a base36 id string at the specified segment length

`uintArrayFromBase36(s, segmentLength)` - convert a base36 id string to an array of numbers at the specified segment length

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