# @gatsbylabs/short-uuid-subdomain

> Transform UUIDs to be RFC1123 subdomain compliant for Node.js.

Latest version **1.0.0** (published 2022-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gatsbylabs/short-uuid-subdomain
pnpm add @gatsbylabs/short-uuid-subdomain
yarn add @gatsbylabs/short-uuid-subdomain
bun add @gatsbylabs/short-uuid-subdomain
```

## 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 | 2022-06-30 |
| First published | 2022-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Enoch Chau |
| Maintainers | ec965, emilyhoward, mikezuccarino |
| Keywords | uuid, short-uuid, subdomain, RFC1123 |

## Links

- npm: https://www.npmjs.com/package/@gatsbylabs/short-uuid-subdomain
- Repository: https://github.com/gatsbylabs/short-uuid-subdomain
- Homepage: https://github.com/gatsbylabs/short-uuid-subdomain#readme
- Issues: https://github.com/gatsbylabs/short-uuid-subdomain/issues
- npm.io page: https://npm.io/package/@gatsbylabs/short-uuid-subdomain

## Dependencies (3)

- [short-uuid](https://npm.io/package/short-uuid.md) ^4.2.0
- [base32-decode](https://npm.io/package/base32-decode.md) ^1.0.0
- [base32-encode](https://npm.io/package/base32-encode.md) ~1.0.0

## 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.0 (latest) — 2022-06-30

## README

# Short UUID Subdomain

Transform UUIDs to be RFC1123 subdomain compliant for Node.js.

Kubernetes has a character limit of [253 for DNS Subdomain names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names).
This package was create to transform shorten and transform UUIDs to be usable as kubernetes deployment names.

## Usage

```js
import * as sus from "@gatsbylabs/short-uuid-subdomain";
import { v4 as uuid } from "uuid";

const id = uuid();

const shortId = sus.encode(id);
const backAgain = sus.decode(shortId);
```

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