sqids-javascript
nanoid-dictionary
sqids-javascript | nanoid-dictionary | |
---|---|---|
1 | 1 | |
564 | 110 | |
5.5% | - | |
7.1 | 10.0 | |
4 months ago | over 1 year ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sqids-javascript
-
Sqids – Generate Short Unique IDs from Numbers
Odd design decision in that if you provide your own blocklist, it overwrites their (extensive) default list instead of adding to it.
And in general the algorithm is surprisingly complicated for something that could be replaced with simply base64 encoding, the given example (1,2,3) base64 encodes to a string with just one more letter than this algorithm.
That said I do appreciate the semicolon-free-style. I don't typically see that in libs besides my own.
https://github.com/sqids/sqids-javascript/blob/main/src/sqid...
nanoid-dictionary
-
Sqids – Generate Short Unique IDs from Numbers
This is the implementation: https://github.com/CyberAP/nanoid-dictionary
We use it in a highly internationalized product spanning multiple languages and haven’t yet ran into a complaint or value on audit that would constitute something offense in any language per our intl content teams anyway.
What are some alternatives?
sqids-dotnet - Official .NET port of Sqids. Generate short unique IDs from numbers.
nanoid-good - Obscene words filter for nanoid
base-emoji - BaseEmoji is a binary-to-emoji encoding scheme that represent binary data in a subset of the Unicode Emoji symbols, designed for triggering senior programmers effortlessly. BaseEmoji is heavily influenced by my furstration towards my tech lead that always shares data (base64 encoded) with me.
sqids-ruby - Official Ruby port of Sqids. Generate short unique IDs from numbers.
gfc64 - Obscures database sequential primary keys (or any 64-bit int) using a Feistel cipher. Throw away your UUIDs!
proquint - Proquints: Identifiers that are Readable, Spellable, and Pronounceable.