diff --git a/docs/assets/contributors/apottere.svg b/docs/assets/contributors/apottere.svg new file mode 100644 index 0000000..66ce737 --- /dev/null +++ b/docs/assets/contributors/apottere.svg @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/docs/assets/contributors/bambuchaAdm.svg b/docs/assets/contributors/bambuchaAdm.svg new file mode 100644 index 0000000..994460c --- /dev/null +++ b/docs/assets/contributors/bambuchaAdm.svg @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/docs/assets/contributors/irfancnk.svg b/docs/assets/contributors/irfancnk.svg new file mode 100644 index 0000000..f36ac37 --- /dev/null +++ b/docs/assets/contributors/irfancnk.svg @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index c0979e4..7464f6a 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6WZ227bOBCG34W5JRJz6PPdtunuBkiaYpP0RjAC2aITYWVJ0SFNYOTdC0qyNWOTKh1dtpl//uF8PInesiz5lbO5t2X/h3HA5jAacxb7G8Xm7O45yYqHOHwp1VXwnx8/qZxxVmYRm7MwLlS29lcqvzCEnT8Xm4hxtor8PFc5mzP2wR0tbvzU0eXGT7uNBrOJGIHZ7FKt/TIqLsNVESaxn4VocMV7euhoCP/cIG9TneDPjWziOk3EAIZ7l2BX2vtJuc+IDtlwlvqZigvbACxl5M/leh2p02poRf0LCNSyfDqxBY2kv3mk4qfi+TT3vaa//SopteNp/q3oUwXIdoFdfvv7r4fr+8eHh6vLx+tv3/+5/3dfyqufhf4yUvmFIapzlhsMbn/cX91+v+tI3kR0Lx+YmtfoPm8jo83rzDkSgGjEeZGVqyLJHDKe0XAHFq6zoNPzBPZuK67D7YR11rXLOVnVcT2cXlWWh0nsYtaG9hzZVRyoN9fh7YJ7elZnqavnLriHZ5T8UtmXpIxdltkZie7hWqbpCa4kumd/r+mR8IcGX59wGFjHWoaBuyuJPs0VBsN2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241y/XFRf1LSsgVSC9tSIepmcwnIr5qoHFSNSzrDHoc66TSerPnduM2ANknbHmnIsPHJnMWdsSZpflRsVYildRYcrQ48YpsKPwggKapS2rpVvTUfL2d0moGtTXqaH28hgBoMNsyGHUugdSmM63LBWRqmKgpjxebe4uPjN64PLU4/IAAA"; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA6WZ227bOBCG34W5FRJz6PPdtunuBkiaYpP0RjAC2qITYWVJ0SFNYOTdC0qyNWOTKh1dtpl//uF8PInesiz5lbO5v2X/h3HA5jAaeyyWG8Xm7O45yYqHOHwp1VXwn4yfVM48VmYRm7MwLlS2liuVXxjCzp+LTcQ8topknquczRn78BwtbmTq6HIj026jwWzCR2A2u1RrWUbFZbgqwiSWWYgGV7ynh46G8M8N8jbVCf7cyCau04QPYLh3CXalvZ+U+4zokI3HUpmpuLANwFJG/lyu15E6rYZW1L+AQC3LpxNb0Ej6m0cqfiqeT3Pfa/rbr5JSO57m34o+VYBoF9jlt7//eri+f3x4uLp8vP72/Z/7f/elvMoslMtI5ReGqM5ZbjC4/XF/dfv9riN5E9G9fGBqXqP7vI2MNq8z54gDohHnRVauiiRzyHhGwx1YuM6CTs8T2LutuA63E9ZZ1y7nZFXH9XB6VVkeJrGLWRvac2RXcaDeXIe3C+7pWZ2lrp674B6eUfJLZV+SMnZZZmckuodrmaYnuJLonv29pkfCHxp8fcJhYB1rGQburiT6NFcYDNsdNFft7ejdxfhQ0Mv7xc3xpbdPqeIilJE+vBwtqaKHe+Y2ebNPzFrqI+Mg2biOkET3cF1vnDb2OqyPT5JtZFGowHWAh4Ie3vJVhpG+qOhUuYv5kaKPe5pmyduNfPui1kmmviZRFLoecR3aHhWtdml+ZMlSLsMoLJy2DouuRyVl9fdY5U5USHQP1ydV/HS/ZpDoPrtYITep0+bVBPbwSmWWqztXQxLd7yz66n4JJtE9XF9lFAaycLpMoVgnx4XHwuq+N9/ub6ZzBufifMY8tg5VFOhnnLoUj62SzUbnWTR/+6n0Z4WOqEMuBszzB56A86kYLhaev1NUf6j+owrjzPO5KYyTMGCeD6YwIGGCeb4whQkSNmSePzSFDUnYiHn+yBQ2ImFj5vljDybnExiTsDEJmzDPn5iyTUjYlHn+1JRtSsJmzPNnpmwz2l7dbW7kwA9AVCTMKCgLrnvOjTQ4xcGFbTCcAuFDWw85RcJ167kRMadUuO4+N1LmFAzXALgRNKdsuGbAx8ZIiodrDNyIm1NCUBGaGuc2JQQVISN0OFgt1XIxUgdKCDQHMFIHigg0CDCvQcoINAgwMgLKCDQIMDICygg0CDAyAsoINAgwMgLKCDQIMDICykhoEGBkJCgjoUGAkZGgjIQGIYyMxMGmVu1qRkaCMhIahDAyEpSR0CCEeaukjIQGIYyMBGUkNAhhZCQoI6FBCCMjUTOqTqNXlRUqqF8h9LlSXxE38m1ZXRFX7RVxyx6bwwtmu9NyywRn8+3HR3tY6X9ps/2dV3+a5kQ+RfKBRb43TvHlsE0iBigJWJOgx7hW277ubRm3a5vLRKtDdU91nMe4sKibR7JWO26140Y7tGqrXykek92PDKhyNGpua91Orxv/uHuXbnMgeDNbhurdDdkKZDvqENXxWDlCykmXsnlAaKXDVmntVLgqjgfI0QjBNj21NKvfwZASUeJTi7L6dkWzGWnAqtl9fWomRD1BahuOJ1XsHyfRCkCzWNg6dNwdZGjjUT3XLeuHM9QcpOS2Uqu7f/PFgUpFLMXYIq2fII4ahCYQ2ArOaKWA7MBmVz0jIQ3qJti62b4DHZWJVgjYVkiuCsOuItAIhW2EuSrMqwQ4MrbtRrn+DKk/d2nZHKm5bakQdbO5BOQXV1QOqsYlnWGPQ510Gk/W/KbdZkCbpG2PNGTYSDJncWesSZofPFsVYmmdBUerA4/YpsKPFUiKqhS2blXv4MfLGZ1mYGuTnubHWwigBoMNc/ttjMpFe6Ww7ZWGrY6jBc2NC3rhsTRMVRTGis39xcfHb89arU4UIQAA"; \ No newline at end of file diff --git a/docs/classes/ShortUniqueId.html b/docs/classes/ShortUniqueId.html index 1335f17..b1d71dd 100644 --- a/docs/classes/ShortUniqueId.html +++ b/docs/classes/ShortUniqueId.html @@ -7,7 +7,7 @@
const options = { ... };
const uid = new ShortUniqueId(options);
For more information take a look at the ShortUniqueIdOptions type definition.
-Calculates approximate number of hashes before first collision.
Given that:
H
is the total number of possible UUIDs, or in terms of this library,
@@ -49,7 +50,7 @@
This function returns Q(H)
.
(see Poisson distribution)
-Calculates probability of generating duplicate UUIDs (a collision) in a given number of UUID generation rounds.
Given that:
(see Poisson distribution)
(Useful if you are wondering "If I use this lib and expect to perform at most
r
rounds of UUID generations, what is the probability that I will hit a duplicate UUID?".)
Extracts the date embeded in a UUID generated using the uid.stamp(finalLength);
method.
const uidWithTimestamp = uid.stamp(32);
console.log(uidWithTimestamp);
// GDa608f973aRCHLXQYPTbKDbjDeVsSb3
console.log(uid.parseStamp(uidWithTimestamp));
// 2021-05-03T06:24:58.000Z
-Optional
format: stringChange the dictionary after initialization.
-Optional
shuffle: booleanChange the dictionary after initialization.
+Optional
shuffle: booleanGenerates a UUID with a timestamp that can be extracted using uid.parseStamp(stampString);
.
const uidWithTimestamp = uid.stamp(32);
console.log(uidWithTimestamp);
// GDa608f973aRCHLXQYPTbKDbjDeVsSb3
console.log(uid.parseStamp(uidWithTimestamp));
// 2021-05-03T06:24:58.000Z
-Optional
date: DateCalculate a "uniqueness" score (from 0 to 1) of UUIDs based on size of dictionary and chosen UUID length.
Given that:
(Useful if you need a value to rate the "quality" of the combination of given dictionary and UUID length. The closer to 1, higher the uniqueness and thus better the quality.)
-
Calculates approximate number of hashes before first collision.
+validate +