Skip to content

Unique IDs (UUID)

SyncJS provides 3 different functions to create unique IDs according to your taste and preferences.

ts
var uid = ShortUID();
// example: Rp68VrvHMNcc5jffKdQaWZ
ts
var uid = LongUID();
// example: oUhCu6wp6DrmyVxVaEHjzRvv3mh3PGNksSUngbX6rd6Q
ts
var uid = UUIDv4();
// example: 0d2b0018-cc08-44b3-bdc1-401b2819cef1