![]() Please update the docs and tests and add your name to the package.json file. Yes, thank you! This plugin is community-driven, most of its features are from different authors. Then commit all changes and run the release script: pnpm release Copy Contributing In order to publish the latest changes you must build the distribution files: pnpm build Copy SponsorsĬlone this repo: # SSH git clone # HTTPS git clone Copy ![]() We've gone ahead and re-written the whole of it in TypeScript and made sure to packageĭist modules compatible with Deno, Node.js and all major Browsers. Since this package is now reporting 200k+ npm weekly downloads and 16M+ weekly cdn hits, This repo and npm package started as a straight up manual transpilation to ES6 of the short-uid npm package by Ankit Kuwadekar. To find out more about the math behind these functions please refer to theĪPI Reference. To 1, higher the uniqueness and thus better the quality). "quality" of the combination of given dictionary and UUID length (the closer Of hitting a duplicate in a given number of rounds (a collision) and theįunction uniqueness() which provides a score (from 0 to 1) to rate the The function collisionProbability() function to calculate the probability If you change the dictionary and/or the UUID length then we have provided ![]() So, given the previous values, the probability of generating a duplicate Out of the box this library provides a shuffled dictionary of digits fromĠ to 9, as well as the alphabet from a to z both in UPPER and lower case, This largely depends on the given dictionary and the selected UUID length. What is the probability of generating the same id again? You can find the docs and online generator at: Available forĭocumentation with Online Short UUID Generator instantiate using a dictionary containing all 16 valid hex characters var uid = new ShortUniqueId( const uid = new ShortUniqueId ( options ) Copyįor more information take a look at the docs. The ability to set a custom dictionary and length means that Short Unique ID is useful for many other cases such as this random color generator. Your sequential UUID: Random Color generator Press the buttons below to generate your short uuid codes:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |