@gatsbylabs/short-uuid-subdomain
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Short UUID Subdomain

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

Kubernetes has a character limit of 253 for DNS Subdomain names. This package was create to transform shorten and transform UUIDs to be usable as kubernetes deployment names.

Usage

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);

Package Sidebar

Install

npm i @gatsbylabs/short-uuid-subdomain

Weekly Downloads

35

Version

1.0.0

License

MIT

Unpacked Size

5.51 kB

Total Files

5

Last publish

Collaborators

  • ec965
  • emilyhoward
  • mikezuccarino