uuid-url
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

uuid-url

npm npm bundle size npm type definitions NPM

Tiny (< 1kB) library to convert a UUID to a shorter (22 character), URL-safe base64 string and back. Uses uuid for parsing and stringifying UUIDs. Tree-shakeable ESM or CommonJS. Written in TypeScript.

import { urlToUuid, uuidToUrl } from "uuid-url";

uuidToUrl("376a4cca-9431-44f0-bc04-054faffba9b1"); // "N2pMypQxRPC8BAVPr_upsQ"
urlToUuid("N2pMypQxRPC8BAVPr_upsQ"); // "376a4cca-9431-44f0-bc04-054faffba9b1"

Package Sidebar

Install

npm i uuid-url

Weekly Downloads

77

Version

0.0.11

License

ISC

Unpacked Size

6.53 kB

Total Files

5

Last publish

Collaborators

  • ianobermiller