package
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
shortuuid
This library uses base58 encoding to shorten the string representation of Universally Unique IDentifier (UUID) values making them smaller when stored in a document database such as DynamoDB.
This library provides a reduction of ~39% in storage of the string representation of these values.

example
before 1c807ffe-b179-4a15-aa92-e06f5b5cf268
after 4X8k1aRv5UMp9pdKzxaHwu
License
This application is released under Apache 2.0 license and is copyright Mark Wolfe.
Documentation
¶
MustShorten take one or more uuids and encode them using base58
with the encoded values being appended in order.
MustUnShorten takes a shortened value and decodes it into on or more uuids with the result
being in the original order.
Shorten take one or more uuids and encode them using base58
with the encoded values being appended in order.
UnShorten takes a shortened value and decodes it into on or more uuids with the result
being in the original order.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.