Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qwtel/web-uuid
A UUID class that stringifies to URL-safe base64.
https://github.com/qwtel/web-uuid
Last synced: 25 days ago
JSON representation
A UUID class that stringifies to URL-safe base64.
- Host: GitHub
- URL: https://github.com/qwtel/web-uuid
- Owner: qwtel
- License: mit
- Created: 2022-05-26T12:36:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T12:59:13.000Z (over 2 years ago)
- Last Synced: 2024-10-04T03:12:50.060Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Web UUID
A UUID class that stringifies to URL-safe base64.WebUUIDs are represented as bytes (`Uint8Array`) and converted to strings on-demand.
This class implements `toString` and `toJSON` for better language integration,
as well as inspection for node and Deno for a better development experience.For the most part, `WebUUID` can be used where UUID strings are used,
except for equality checks. For those cases, `WebUUID` provides quick access
to the string representations via the `id` field.