sqids-javascript
sqids-javascript copied to clipboard
Official JavaScript port of Sqids. Generate short unique IDs from numbers.
Hashids is there: https://cdnjs.com/libraries/hashids Sqids should be added too
- Move default blocklist to its own file so `class Sqids` is visible upon opening - Export `minAlphabetLength`, `minLengthLimit`, and `maxValue` so they're available to downstream consumers - Enforce `Required`...
Right now max value is `Number.MAX_SAFE_INTEGER`, with no support for bigints. This is an issue for tracking this feature. Hashids has support for it here (for reference): https://github.com/niieani/hashids.js/blob/master/src/hashids.ts Todos: -...